提交 65dd9c05 编写于 作者: I isidor

fixes #52192

上级 d24404ee
......@@ -136,12 +136,12 @@ export class StartAction extends AbstractDebugAction {
public run(): TPromise<any> {
const configurationManager = this.debugService.getConfigurationManager();
let launch = configurationManager.selectedConfiguration.launch;
if (!launch) {
if (!launch || launch.getConfigurationNames().length === 0) {
const rootUri = this.historyService.getLastActiveWorkspaceRoot();
launch = configurationManager.getLaunch(rootUri);
if (!launch || launch.getConfigurationNames().length === 0) {
const launches = configurationManager.getLaunches();
launch = first(launches, l => !!l.getConfigurationNames().length, launches.length ? launches[0] : launch);
launch = first(launches, l => !!l.getConfigurationNames().length, launch);
}
configurationManager.selectConfiguration(launch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册