提交 835da530 编写于 作者: I isidor

debug: do not resolve program and runtime if there is no root

上级 9f4efe99
......@@ -85,7 +85,7 @@ export class Adapter {
private getRuntime(root: uri): string {
let runtime = this.getAttributeBasedOnPlatform('runtime');
if (runtime && runtime.indexOf('./') === 0) {
runtime = this.configurationResolverService ? this.configurationResolverService.resolve(root, runtime) : runtime;
runtime = root ? this.configurationResolverService.resolve(root, runtime) : runtime;
runtime = paths.join(this.extensionDescription.extensionFolderPath, runtime);
}
return runtime;
......@@ -94,7 +94,7 @@ export class Adapter {
private getProgram(root: uri): string {
let program = this.getAttributeBasedOnPlatform('program');
if (program) {
program = this.configurationResolverService ? this.configurationResolverService.resolve(root, program) : program;
program = root ? this.configurationResolverService.resolve(root, program) : program;
program = paths.join(this.extensionDescription.extensionFolderPath, program);
}
return program;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册