From e07355b5ed53c30b96014b2bdbe519061e4a7d47 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 4 Apr 2024 21:46:15 +0100 Subject: [PATCH] fix: normalize notebook cell filename in plugin (#1103) --- 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;