Skip to content

Commit 4d2fb35

Browse files
wait for settings to update before starting a debug session with CodeLLDB (#1482)
1 parent 1637ecb commit 4d2fb35

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/debugger/debugAdapterFactory.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,24 +211,28 @@ export class LLDBDebugConfigurationProvider implements vscode.DebugConfiguration
211211
}
212212
switch (userSelection) {
213213
case "Global":
214-
lldbConfig.update("library", libLldbPath, vscode.ConfigurationTarget.Global);
215-
lldbConfig.update(
214+
await lldbConfig.update("library", libLldbPath, vscode.ConfigurationTarget.Global);
215+
await lldbConfig.update(
216216
"launch.expressions",
217217
"native",
218218
vscode.ConfigurationTarget.Global
219219
);
220220
// clear workspace setting
221-
lldbConfig.update("library", undefined, vscode.ConfigurationTarget.Workspace);
221+
await lldbConfig.update("library", undefined, vscode.ConfigurationTarget.Workspace);
222222
// clear workspace setting
223-
lldbConfig.update(
223+
await lldbConfig.update(
224224
"launch.expressions",
225225
undefined,
226226
vscode.ConfigurationTarget.Workspace
227227
);
228228
break;
229229
case "Workspace":
230-
lldbConfig.update("library", libLldbPath, vscode.ConfigurationTarget.Workspace);
231-
lldbConfig.update(
230+
await lldbConfig.update(
231+
"library",
232+
libLldbPath,
233+
vscode.ConfigurationTarget.Workspace
234+
);
235+
await lldbConfig.update(
232236
"launch.expressions",
233237
"native",
234238
vscode.ConfigurationTarget.Workspace

0 commit comments

Comments
 (0)