Skip to content

Commit 9cca26e

Browse files
committed
Updating the 'lldb-dap.serverMode' setting description and tweaking the handler to collect the connection parameter to only run once.
1 parent e5f1861 commit 9cca26e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/tools/lldb-dap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"lldb-dap.serverMode": {
9393
"scope": "resource",
9494
"type": "boolean",
95-
"description": "Run lldb-dap in server mode. When enabled, lldb-dap will start a background server that will be reused between debug sessions. This can improve launch performance and caching of debug symbols between debug sessions.",
95+
"markdownDescription": "Run lldb-dap in server mode.\n\nWhen enabled, lldb-dap will start a background server that will be reused between debug sessions. This allows caching of debug symbols between sessions and improves launch performance.",
9696
"default": false
9797
}
9898
}

lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class LLDBDapDescriptorFactory
162162
'connect://localhost:0'
163163
);
164164
const server = child_process.spawn(dapPath, args, options);
165-
server.stdout!.setEncoding('utf8').on('data', (data: string) => {
165+
server.stdout!.setEncoding('utf8').once('data', (data: string) => {
166166
const connection = /connection:\/\/\[([^\]]+)\]:(\d+)/.exec(data);
167167
if (connection) {
168168
const host = connection[1];

0 commit comments

Comments
 (0)