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) => {