diff options
| author | vsrs <vit@conrlab.com> | 2020-04-29 14:13:57 +0300 |
|---|---|---|
| committer | vsrs <vit@conrlab.com> | 2020-04-29 14:13:57 +0300 |
| commit | 9153e96e88236e2f867dee8f0f291af5cfaf90f4 (patch) | |
| tree | 7e43f5a89926d78a2c763546672fe8c2bc099fe0 /editors/code/src | |
| parent | 042917e6e3bc3cb05e08e487ee8a7d0d4ae3af6b (diff) | |
| download | rust-9153e96e88236e2f867dee8f0f291af5cfaf90f4.tar.gz rust-9153e96e88236e2f867dee8f0f291af5cfaf90f4.zip | |
better configuration enum items
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands/runnables.ts | 2 | ||||
| -rw-r--r-- | editors/code/src/config.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index befb8b3663f..2238a5a7337 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 7764a217943..110e541800e 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<null | string>("debug.engine"), + engine: this.get<string>("debug.engine"), sourceFileMap: this.get<Record<string, string>>("debug.sourceFileMap"), }; } |
