From 9153e96e88236e2f867dee8f0f291af5cfaf90f4 Mon Sep 17 00:00:00 2001 From: vsrs Date: Wed, 29 Apr 2020 14:13:57 +0300 Subject: better configuration enum items --- editors/code/src/commands/runnables.ts | 2 +- editors/code/src/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index befb8b366..2238a5a73 100644 --- a/editors/code/src/commands/runnables.ts +++ b/editors/code/src/commands/runnables.ts @@ -102,7 +102,7 @@ export function debugSingle(ctx: Ctx): Cmd { let debugEngineId = ctx.config.debug.engine; let debugEngine = null; - if (!debugEngineId) { + if ( debugEngineId === "auto" ) { debugEngine = vscode.extensions.getExtension(lldbId); if (!debugEngine) { debugEngine = vscode.extensions.getExtension(cpptoolsId); diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 7764a2179..110e54180 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -109,7 +109,7 @@ export class Config { get debug() { return { - engine: this.get("debug.engine"), + engine: this.get("debug.engine"), sourceFileMap: this.get>("debug.sourceFileMap"), }; } -- cgit v1.2.3