mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user