Skip to content

Commit 888c0b2

Browse files
authored
Merge pull request #221 from AriFordsham/web-ext
Web extension support
2 parents 86d0b90 + f553375 commit 888c0b2

File tree

8 files changed

+2683
-66
lines changed

8 files changed

+2683
-66
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
out
2+
dist
23
*.vsix
34
node_modules
45
syntaxes/haskell.json
@@ -7,4 +8,5 @@ syntaxes/cabal.json
78
syntaxes/literateHaskell.json
89
syntaxes/alex.json
910
syntaxes/happy.json
10-
test/*/*.snap
11+
test/*/*.snap
12+
.vscode-test-web

.vscode/launch.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
"${workspaceFolder}/out/**/*.js"
1717
],
1818
"preLaunchTask": "compile-all"
19+
},
20+
{
21+
"name": "Run Web Extension in VS Code",
22+
"type": "extensionHost",
23+
"debugWebWorkerHost": true,
24+
"request": "launch",
25+
"args": [
26+
"--extensionDevelopmentPath=${workspaceFolder}",
27+
"--extensionDevelopmentKind=web"
28+
],
29+
"outFiles": [
30+
"${workspaceFolder}/dist/web/**/*.js"
31+
],
32+
"preLaunchTask": "npm: watch-web"
1933
}
2034
]
21-
}
35+
}

.vscode/tasks.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,33 @@
1818
"focus": false,
1919
"panel": "dedicated"
2020
},
21-
"problemMatcher": ["$tsc"]
21+
"problemMatcher": [
22+
"$tsc"
23+
]
2224
},
2325
{
2426
"type": "shell",
2527
"label": "make-json",
2628
"command": "make",
27-
"args": ["all"]
29+
"args": [
30+
"all"
31+
]
2832
},
2933
{
3034
"label": "compile-all",
31-
"dependsOn": ["npm", "make-json"]
35+
"dependsOn": [
36+
"npm",
37+
"make-json"
38+
]
39+
},
40+
{
41+
"type": "npm",
42+
"script": "watch-web",
43+
"group": "build",
44+
"isBackground": true,
45+
"problemMatcher": [
46+
"$ts-webpack-watch"
47+
]
3248
}
3349
]
34-
}
50+
}

0 commit comments

Comments
 (0)