Skip to content

Commit

Permalink
Apply PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Sep 1, 2021
1 parent 8e55780 commit 320e043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/code/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export async function main(argv: string[]): Promise<any> {
openArgs.push('--stderr', tmpStderrName);
}
const argsArr: string[] = [];
const isDev = env['NODE_ENV'] === 'development';
const isDev = env['VSCODE_DEV'];
// When we're in development mode, call the OSS app rather than the OSS app's Electron
const execPathToUse = isDev ? resolve(join(process.execPath, '../../..')) : process.execPath;
argsArr.push('-a', execPathToUse);
Expand Down
3 changes: 2 additions & 1 deletion src/vs/code/node/cliVerboseLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/

import { ChildProcess } from 'child_process';
import { watch, writeFileSync } from 'fs';
import { watch, writeFileSync, unlinkSync } from 'fs';
import { Promises } from 'vs/base/node/pfs';

/**
Expand Down Expand Up @@ -42,6 +42,7 @@ export class CliVerboseLogger {
}).finally(() => {
Promises.close(fileHandle);
watcher.close();
unlinkSync(this.filename);
});
};
}
Expand Down

0 comments on commit 320e043

Please sign in to comment.