Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/contrib/debug/browser/debugService.ts')
-rw-r--r--src/vs/workbench/contrib/debug/browser/debugService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vs/workbench/contrib/debug/browser/debugService.ts b/src/vs/workbench/contrib/debug/browser/debugService.ts
index 2474922a5ad..f6db1acdb80 100644
--- a/src/vs/workbench/contrib/debug/browser/debugService.ts
+++ b/src/vs/workbench/contrib/debug/browser/debugService.ts
@@ -474,7 +474,7 @@ export class DebugService implements IDebugService {
const cfg = await this.configurationManager.resolveDebugConfigurationWithSubstitutedVariables(launch && launch.workspace ? launch.workspace.uri : undefined, type, resolvedConfig, initCancellationToken.token);
if (!cfg) {
if (launch && type && cfg === null && !initCancellationToken.token.isCancellationRequested) { // show launch.json only for "config" being "null".
- await launch.openConfigFile(true, type, initCancellationToken.token);
+ await launch.openConfigFile({ preserveFocus: true, type }, initCancellationToken.token);
}
return false;
}
@@ -526,7 +526,7 @@ export class DebugService implements IDebugService {
await this.showError(nls.localize('noFolderWorkspaceDebugError', "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."));
}
if (launch && !initCancellationToken.token.isCancellationRequested) {
- await launch.openConfigFile(true, undefined, initCancellationToken.token);
+ await launch.openConfigFile({ preserveFocus: true }, initCancellationToken.token);
}
return false;
@@ -534,7 +534,7 @@ export class DebugService implements IDebugService {
}
if (launch && type && configByProviders === null && !initCancellationToken.token.isCancellationRequested) { // show launch.json only for "config" being "null".
- await launch.openConfigFile(true, type, initCancellationToken.token);
+ await launch.openConfigFile({ preserveFocus: true, type }, initCancellationToken.token);
}
return false;