Skip to content

Commit

Permalink
fix: tasks panel empty on win machines (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedgeva authored Nov 25, 2023
1 parent 88929bd commit 40bd148
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/tasks_sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,12 @@ class DenoTaskProvider implements TaskProvider {
if (!sourceUri) {
continue;
}
const workspaceFolder = (workspace.workspaceFolders ?? []).find((
f,
) => sourceUri.startsWith(f.uri.toString()));
const workspaceFolder = (workspace.workspaceFolders ?? []).find((f) =>
// NOTE: skipEncoding in Uri.toString(), read more at https://github.com/microsoft/vscode/commit/65cb3397673b922c1b6759d145a3a183feb3ee5d
sourceUri
.toLocaleLowerCase()
.startsWith(f.uri.toString(true).toLocaleLowerCase())
);
if (!workspaceFolder) {
continue;
}
Expand Down

0 comments on commit 40bd148

Please sign in to comment.