remove unused case in TCO output

This commit is contained in:
2025-03-30 09:39:09 -07:00
parent 7dc9751359
commit 4ec7519955
4 changed files with 88 additions and 85 deletions

View File

@@ -32,10 +32,12 @@ export function activate(context: vscode.ExtensionContext) {
const config = vscode.workspace.getConfiguration("newt");
const cmd = config.get<string>("path", "build/exec/newt");
const command = `${cmd} --top ${fileName}`;
let st = +new Date();
exec(
command,
{ cwd, maxBuffer: 1024 * 1024 * 10 },
(err, stdout, _stderr) => {
console.log(`newt took ${+new Date() - st}`);
// I think I ignored 1 here because I wanted failure to launch
if (err && err.code !== 1)
vscode.window.showErrorMessage(`newt error: ${err}`);