Skip to content

Commit

Permalink
add temporary TODO's
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Oct 6, 2024
1 parent 6d14e18 commit 8f2d7d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/meson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ export async function format(meson: Tool, root: string, document: vscode.TextDoc
if (config_path) {
args.push("-c", config_path);
}

//TODO: this doesn't work, we have file a bug report upstream, that "-" (or any other notation for stdin) should be supported
// or use hacky way and use "/dev/stdin" or "/dev/fd/0" as file
args.push("-");

const { stdout, stderr, error } = await execFeed(meson.path, args, { cwd: root }, originalDocumentText);
if (error) {
//TODO: file a bug report, meson prints error on stdout :(
getOutputChannel().appendLine(`Failed to format document with meson: ${stderr}`);
getOutputChannel().show(true);
return [];
Expand Down

0 comments on commit 8f2d7d8

Please sign in to comment.