Skip to content

Commit 2c6a8c1

Browse files
update wording in server restart modal
1 parent 87a2fbe commit 2c6a8c1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

lldb/tools/lldb-dap/src-ts/lldb-dap-server.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,21 @@ export class LLDBDapServer implements vscode.Disposable {
9090
}
9191

9292
const userInput = await vscode.window.showInformationMessage(
93-
"A server mode instance of lldb-dap is already running, but the arguments are different from what is requested in your debug configuration or settings. Would you like to restart the server?",
94-
{ modal: true },
93+
"The arguments to lldb-dap have changed. Would you like to restart the server?",
94+
{
95+
modal: true,
96+
detail: `An existing lldb-dap server (${this.serverProcess.pid}) is running with different arguments.
97+
98+
The previous lldb-dap server was started with:
99+
100+
${this.serverProcess.spawnargs.join(" ")}
101+
102+
The new lldb-dap server will be started with:
103+
104+
${dapPath} ${args.join(" ")}
105+
106+
Restarting the server will interrupt any existing debug sessions and start a new server.`,
107+
},
95108
"Restart",
96109
"Use Existing",
97110
);

0 commit comments

Comments
 (0)