Fix drive letter casing on typescript tasks

Occurs when opening by double clicking on workspace file. Fixes #75084
This commit is contained in:
Alex Ross
2019-06-25 16:36:45 +02:00
parent d978e48bc6
commit 7f365d2ff2

View File

@@ -234,7 +234,7 @@ class TscTaskProvider implements vscode.TaskProvider {
private getLabelForTasks(project: TSConfig): string {
if (project.workspaceFolder) {
return path.posix.relative(project.workspaceFolder.uri.path, project.posixPath);
return path.posix.relative(path.posix.normalize(project.workspaceFolder.uri.path), path.posix.normalize(project.posixPath));
}
return project.posixPath;
}