Skip to content

Commit

Permalink
Attempt to fix editor
Browse files Browse the repository at this point in the history
  • Loading branch information
farisd16 committed Nov 25, 2024
1 parent f34cc1c commit ff3ba80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 0 additions & 7 deletions editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,5 @@
"postcss": "^8.4.35",
"process": "^0.11.10",
"tailwindcss": "^3.4.1"
},
"targets": {
"default": {
"sourceMap": {
"inline": true
}
}
}
}
6 changes: 5 additions & 1 deletion src/menu-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit ff3ba80

Please sign in to comment.