From fd2472de3bdc0bbec8eb7bc16722b11edc120a74 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:56:34 -0400 Subject: [PATCH] Add comments --- src/utils/path-helpers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/path-helpers.ts b/src/utils/path-helpers.ts index 9b87e7c..f629004 100644 --- a/src/utils/path-helpers.ts +++ b/src/utils/path-helpers.ts @@ -20,6 +20,9 @@ path handling capabilities across different platforms. Note: When interacting with the file system or VS Code APIs, we still use the native path module to ensure correct behavior on all platforms. The toPosixPath and arePathsEqual functions are primarily used for presentation and comparison purposes, not for actual file system operations. + +Observations: +- Macos isn't so flexible with mixed separators, whereas windows can handle both. ("Node.js does automatically handle path separators on Windows, converting forward slashes to backslashes as needed. However, on macOS and other Unix-like systems, the path separator is always a forward slash (/), and backslashes are treated as regular characters.") */ function toPosixPath(p: string) {