debug: no longer automatically convert relative to absolute paths
This commit is contained in:
parent
85400f31bd
commit
d969678fa0
|
@ -242,12 +242,7 @@ export class ConfigurationManager {
|
|||
this.configuration[key] = this.systemVariables.resolve(this.configuration[key]);
|
||||
});
|
||||
}
|
||||
|
||||
this.configuration.debugServer = config.debugServer;
|
||||
this.configuration.outDir = this.resolvePath(this.configuration.outDir);
|
||||
this.configuration.program = this.resolvePath(this.configuration.program);
|
||||
this.configuration.cwd = this.resolvePath(this.configuration.cwd || '.');
|
||||
this.configuration.runtimeExecutable = this.resolvePath(this.configuration.runtimeExecutable);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -342,17 +337,6 @@ export class ConfigurationManager {
|
|||
return !!this.allModeIdsForBreakpoints[modeId];
|
||||
}
|
||||
|
||||
private resolvePath(p: string): string {
|
||||
if (!p) {
|
||||
return null;
|
||||
}
|
||||
if (path.isAbsolute(p)) {
|
||||
return paths.normalize(p, true);
|
||||
}
|
||||
|
||||
return paths.normalize(uri.file(paths.join(this.contextService.getWorkspace().resource.fsPath, p)).fsPath, true);
|
||||
}
|
||||
|
||||
public loadLaunchConfig(): TPromise<debug.IGlobalConfig> {
|
||||
return this.configurationService.loadConfiguration('launch');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue