From ff3ba8037827d8350734ddeab86c635d188cb0f2 Mon Sep 17 00:00:00 2001 From: Faris Demirovic Date: Mon, 25 Nov 2024 16:44:42 +0100 Subject: [PATCH] Attempt to fix editor --- editor/package.json | 7 ------- src/menu-provider.ts | 6 +++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/editor/package.json b/editor/package.json index 6038c8e..09b7db3 100644 --- a/editor/package.json +++ b/editor/package.json @@ -55,12 +55,5 @@ "postcss": "^8.4.35", "process": "^0.11.10", "tailwindcss": "^3.4.1" - }, - "targets": { - "default": { - "sourceMap": { - "inline": true - } - } } } diff --git a/src/menu-provider.ts b/src/menu-provider.ts index 4e27186..2fc91b6 100644 --- a/src/menu-provider.ts +++ b/src/menu-provider.ts @@ -154,7 +154,11 @@ export default class MenuProvider implements vscode.WebviewViewProvider { "editor", name, vscode.ViewColumn.One, - { enableScripts: true, retainContextWhenHidden: true } + { + enableScripts: true, + retainContextWhenHidden: true, + localResourceRoots: [this._extensionUri], + } ); this.editorPanel.iconPath = editorIconPath; this.editorPanel.webview.onDidReceiveMessage(async (data) => {