mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Capitalize the drive letter in windows absolute paths (#727)
This commit is contained in:
@@ -33,6 +33,10 @@ export async function get_project_dir(): Promise<string | undefined> {
|
|||||||
}
|
}
|
||||||
projectFile = file;
|
projectFile = file;
|
||||||
projectDir = path.dirname(file);
|
projectDir = path.dirname(file);
|
||||||
|
if (os.platform() === "win32") {
|
||||||
|
// capitalize the drive letter in windows absolute paths
|
||||||
|
projectDir = projectDir[0].toUpperCase() + projectDir.slice(1);
|
||||||
|
}
|
||||||
return projectDir;
|
return projectDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user