mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
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:
@ -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() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user