From 40bd1480738a4aa51f68a27194141e044479afba Mon Sep 17 00:00:00 2001 From: Pavel Udaloff Date: Sat, 25 Nov 2023 12:20:59 +0400 Subject: [PATCH] fix: tasks panel empty on win machines (#996) --- client/src/tasks_sidebar.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/tasks_sidebar.ts b/client/src/tasks_sidebar.ts index 9df14bfc..983a57e3 100644 --- a/client/src/tasks_sidebar.ts +++ b/client/src/tasks_sidebar.ts @@ -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; }