fix(vscode): normalize status path comparison (#3322)
Closes #3308. Thanks for fixing the misleading Windows status diagnostic and adding the focused regression tests.
This commit is contained in:
@@ -7,3 +7,6 @@
|
||||
*/
|
||||
export const normalizeWindowsDriveLetter = (p: string): string =>
|
||||
p.replace(/^([a-z]):/, (_, letter: string) => letter.toUpperCase() + ':');
|
||||
|
||||
export const pathsEqualWithNormalizedDriveLetter = (left: string, right: string): boolean =>
|
||||
normalizeWindowsDriveLetter(left) === normalizeWindowsDriveLetter(right);
|
||||
|
||||
Reference in New Issue
Block a user