mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 05:23:12 +00:00
better configuration enum items
This commit is contained in:
parent
042917e6e3
commit
9153e96e88
3 changed files with 16 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue