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;