use auto attach children instead of multiple launch configs

This is a new (with js-debug) option that makes debugging child processes much easier. Use it for the LSP subprocesses.

Supplants https://github.com/microsoft/vscode-extension-samples/pull/704
This commit is contained in:
Connor Peet
2022-12-06 15:31:35 -08:00
parent 7e2f7f11d0
commit dbee9a0daf
13 changed files with 11 additions and 123 deletions

View File

@ -12,7 +12,7 @@ export function activate(context: ExtensionContext): void {
const serverModule = context.asAbsolutePath(path.join('server', 'out', 'sampleServer.js'));
let serverOptions: ServerOptions = {
run: { module: serverModule, transport: TransportKind.ipc, options: { cwd: process.cwd() } },
debug: { module: serverModule, transport: TransportKind.ipc, options: { execArgv: ['--nolazy', '--inspect=6011'], cwd: process.cwd() } }
debug: { module: serverModule, transport: TransportKind.ipc, options: { cwd: process.cwd() } }
};
let clientOptions: LanguageClientOptions = {
@ -48,4 +48,4 @@ export function activate(context: ExtensionContext): void {
}
export function deactivate() {
}
}