Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 43e11fa

Browse files
authoredFeb 10, 2021
fix: CreateFile ERROR_FILE_NOT_FOUND from crashpad handler (#116256)
1 parent 9d194ea commit 43e11fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/vs/code/electron-main/window.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,15 @@ export class CodeWindow extends Disposable implements ICodeWindow {
702702
config.userEnv = { ...currentUserEnv, ...config.userEnv }; // still allow to override certain environment as passed in
703703
}
704704

705+
// If named pipe was instantiated for the crashpad_handler process, reuse the same
706+
// pipe for new app instances connecting to the original app instance.
707+
// Ref: https://github.com/microsoft/vscode/issues/115874
708+
if (process.env['CHROME_CRASHPAD_PIPE_NAME']) {
709+
Object.assign(config.userEnv, {
710+
CHROME_CRASHPAD_PIPE_NAME: process.env['CHROME_CRASHPAD_PIPE_NAME']
711+
});
712+
}
713+
705714
// If this is the first time the window is loaded, we associate the paths
706715
// directly with the window because we assume the loading will just work
707716
if (this._readyState === ReadyState.NONE) {

0 commit comments

Comments
 (0)
Please sign in to comment.