提交 5731c047 编写于 作者: I isidor

debug: resolveConfigurationByProviders on restart

上级 65685d30
......@@ -589,7 +589,11 @@ export class DebugService implements IDebugService {
}
}
const substitutionThenable: Thenable<IConfig> = needsToSubstitute ? this.substituteVariables(launch, unresolved) : Promise.resolve(session.configuration);
let substitutionThenable: Thenable<IConfig> = Promise.resolve(session.configuration);
if (needsToSubstitute) {
substitutionThenable = this.configurationManager.resolveConfigurationByProviders(launch.workspace ? launch.workspace.uri : undefined, unresolved.type, unresolved)
.then(resolved => this.substituteVariables(launch, resolved));
}
substitutionThenable.then(resolved => {
session.setConfiguration({ resolved, unresolved });
session.configuration.__restart = restartData;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册