Skip to content

Commit 9ca2560

Browse files
committed
Guard -WaitForDebugger flag client-side too
1 parent 8ebaa39 commit 9ca2560

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/session.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class SessionManager implements Middleware {
331331
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
332332
if ((resolvedCodeLens as Thenable<vscode.CodeLens>).then) {
333333
return (resolvedCodeLens as Thenable<vscode.CodeLens>).then(resolveFunc);
334-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
334+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
335335
} else if (resolvedCodeLens as vscode.CodeLens) {
336336
return resolveFunc(resolvedCodeLens as vscode.CodeLens);
337337
}
@@ -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)