Skip to content

Commit c4d68fd

Browse files
authored
Disable auto-kill of extension when debugging (#10415)
1 parent 2d3cac0 commit c4d68fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,10 +1178,8 @@ export class DefaultClient implements Client {
11781178
}
11791179
const serverName: string = this.getName(this.rootFolder);
11801180
const serverOptions: ServerOptions = {
1181-
// Running detached would be preferred; however, that causes cpptools-srv to create a console window
1182-
// on Windows and that can't seem to be suppressed without suppressing assertion dialog boxes.
11831181
run: { command: serverModule, options: { detached: false } },
1184-
debug: { command: serverModule, args: [serverName], options: { detached: false } }
1182+
debug: { command: serverModule, args: [serverName], options: { detached: true } }
11851183
};
11861184

11871185
let intelliSenseCacheDisabled: boolean = false;

0 commit comments

Comments
 (0)