From 745558d99c8d39fc0ecf4d5b85c00f789a17227d Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 4 Apr 2024 17:22:53 +0100 Subject: [PATCH] fix: normalize notebook cell filename in plugin --- typescript-deno-plugin/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typescript-deno-plugin/src/index.ts b/typescript-deno-plugin/src/index.ts index 2213e359..f7b455c7 100644 --- a/typescript-deno-plugin/src/index.ts +++ b/typescript-deno-plugin/src/index.ts @@ -53,6 +53,7 @@ class Plugin implements ts.server.PluginModule { if (process.platform === "win32") { fileName = fileName.replace(/\//g, "\\"); } + fileName = fileName.replace(/^\^\/vscode-notebook-cell\/[^/]*/, ""); const pluginSettings = projectSettings.get(this.#projectName); if (!pluginSettings) { return false;