Capitalize the drive letter in windows absolute paths (#727)

This commit is contained in:
David Kincaid
2024-09-25 17:19:59 -04:00
committed by GitHub
parent 170d3d4819
commit 658270e742

View File

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