Remove "rust-analyzer.debug.useLaunchJson" option

This commit is contained in:
vsrs 2020-05-14 11:12:10 +03:00
parent 9ebb2acdca
commit 3ffc26eaeb
3 changed files with 9 additions and 18 deletions

View file

@ -443,11 +443,6 @@
"type": "object",
"default": {},
"description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }"
},
"rust-analyzer.debug.useLaunchJson": {
"description": "Whether to use existing configurations from launch.json.",
"type": "boolean",
"default": false
}
}
},

View file

@ -116,8 +116,7 @@ export class Config {
engine: this.get<string>("debug.engine"),
engineSettings: this.get<object>("debug.engineSettings"),
openUpDebugPane: this.get<boolean>("debug.openUpDebugPane"),
sourceFileMap: sourceFileMap,
useLaunchJson: this.get<object>("debug.useLaunchJson"),
sourceFileMap: sourceFileMap
};
}
}

View file

@ -98,7 +98,6 @@ export async function startDebugSession(ctx: Ctx, config: ra.Runnable): Promise<
let debugConfig: vscode.DebugConfiguration | undefined = undefined;
let message = "";
if (ctx.config.debug.useLaunchJson) {
const wsLaunchSection = vscode.workspace.getConfiguration("launch");
const configurations = wsLaunchSection.get<any[]>("configurations") || [];
@ -107,9 +106,7 @@ export async function startDebugSession(ctx: Ctx, config: ra.Runnable): Promise<
debugConfig = configurations[index];
message = " (from launch.json)";
debugOutput.clear();
}
}
if (!debugConfig) {
} else {
debugConfig = await getDebugConfiguration(ctx, config);
}