Skip to content

Commit bf9339b

Browse files
committed
bugfix: 401 path issue for MacOs
1 parent b56ddda commit bf9339b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"eslint-plugin-jsdoc": "^39.3.6",
4646
"pug": "^3.0.2",
4747
"shelljs": "^0.8.5",
48+
"ts-node": "^10.9.1",
4849
"vsce": "^2.11.0",
4950
"webpack": "^5.74.0",
5051
"webpack-cli": "^4.10.0"

src/webview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class SpecWebviewPanel {
2727
return
2828
}
2929

30-
const panelSetting = { enableScripts: true, enableCommandUris: true }
30+
const panelSetting = { enableScripts: true }
3131

3232
if (os.platform() == 'darwin') {
33-
panelSetting.localResourceRoots = [Uri.file(workspace.workspaceFolders[0].uri.fsPath)]
33+
panelSetting.localResourceRoots = [Uri.file(__dirname), Uri.file(workspace.workspaceFolders[0].uri.fsPath)]
3434
}
3535

3636
const viewColumn = column || ViewColumn.One

0 commit comments

Comments
 (0)