Skip to content

Commit 5cae711

Browse files
Guard -WaitForDebugger flag client-side too (#4241)
1 parent 7a40cb3 commit 5cae711

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/session.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export class SessionManager implements Middleware {
330330
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
331331
if ((resolvedCodeLens as Thenable<vscode.CodeLens>).then) {
332332
return (resolvedCodeLens as Thenable<vscode.CodeLens>).then(resolveFunc);
333-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
333+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
334334
} else if (resolvedCodeLens as vscode.CodeLens) {
335335
return resolveFunc(resolvedCodeLens as vscode.CodeLens);
336336
}
@@ -571,7 +571,9 @@ Type 'help' to get help.
571571
editorServicesArgs += `-StartupBanner "${startupBanner}" `;
572572
}
573573

574-
if (this.sessionSettings.developer.editorServicesWaitForDebugger) {
574+
// We guard this here too out of an abundance of precaution.
575+
if (this.sessionSettings.developer.editorServicesWaitForDebugger
576+
&& this.extensionContext.extensionMode === vscode.ExtensionMode.Development) {
575577
editorServicesArgs += "-WaitForDebugger ";
576578
}
577579

0 commit comments

Comments
 (0)