debug: no longer automatically convert relative to absolute paths

This commit is contained in:
isidor 2016-02-04 19:56:14 +01:00
parent 85400f31bd
commit d969678fa0

View file

@ -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');
}