Skip to content

Commit

Permalink
Capitalize the drive letter in windows absolute paths (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaelonSuzuka authored Sep 25, 2024
1 parent 170d3d4 commit 658270e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/project_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 658270e

Please sign in to comment.