提交 03df65d8 编写于 作者: I isidor

debug: convert a relative path read from package.json main field

fixes #2353
上级 1bef9ade
...@@ -315,9 +315,13 @@ export class ConfigurationManager { ...@@ -315,9 +315,13 @@ export class ConfigurationManager {
} catch (error) { } } catch (error) { }
return null; return null;
}, err => null).then(program => { }, err => null).then((program: string) => {
adapter.initialConfigurations.forEach(config => { adapter.initialConfigurations.forEach(config => {
if (program && config.program) { if (program && config.program) {
if (!path.isAbsolute(program)) {
program = '${workspaceRoot}' + (program.charAt(0) === '.' ? program.slice(1) : program);
}
config.program = program; config.program = program;
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册