From f9aa11226fd6a940f8dcbf0cb2ac951f894983b7 Mon Sep 17 00:00:00 2001 From: Nicolas Hedger Date: Wed, 2 Oct 2024 06:56:58 +0200 Subject: [PATCH] fix document selector pattern --- src/session.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/session.ts b/src/session.ts index c6540470..f48cfb7d 100644 --- a/src/session.ts +++ b/src/session.ts @@ -350,7 +350,10 @@ const createDocumentSelector = (project?: Project): DocumentFilter[] => { return supportedLanguages.map((language) => ({ language, scheme: "file", - pattern: `${project.path.fsPath}**/*`, + pattern: Uri.joinPath(project.path, "**", "*").fsPath.replace( + "\\", + "/", + ), })); }