We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30d9d4 commit b79d93cCopy full SHA for b79d93c
src/helpers.ts
@@ -1,11 +1,11 @@
1
-import { Uri, Range, TextDocument } from "vscode";
+import { Range, type TextDocument, type Uri } from "vscode";
2
3
/**
4
* Computes the difference between two paths
5
*/
6
export const pathDiff = (base: Uri, path: Uri) => {
7
- const baseParts = base.path.split("/").filter(Boolean);
8
- const pathParts = path.path.split("/").filter(Boolean);
+ const baseParts = base.fsPath.split(/[\/\\]/).filter(Boolean);
+ const pathParts = path.fsPath.split(/[\/\\]/).filter(Boolean);
9
while (
10
baseParts.length &&
11
pathParts.length &&
0 commit comments