Skip to content

Commit f53994d

Browse files
authored
Update src/utils/WorkspacePathResolver.ts
1 parent 8aa638e commit f53994d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/WorkspacePathResolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function normalizeCase(p: string): string {
3333
* - The result is case-normalized on case-insensitive filesystems (macOS, Windows).
3434
*
3535
* Workspace folder paths should be resolved through this same function by callers, since a folder
36-
* may itself be reached via a symlink.
36+
* may itself be reached via a symlink. Callers should always compare two `resolveRealPath()` results
37+
* rather than mixing with raw `uri.fsPath` — `arePathsEqual()` does not case-fold on macOS.
3738
*/
3839
export async function resolveRealPath(target: string): Promise<string> {
3940
let current = path.resolve(target)

0 commit comments

Comments
 (0)