Skip to content

Commit 6222c40

Browse files
authored
Merge pull request #59 from serkonda7/web-ext
limited web extension support
2 parents 9bae89b + a7a41d5 commit 6222c40

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@
3535
],
3636
"outFiles": ["${workspaceRoot}/dist/client/out/test/**/*.js"]
3737
},
38+
{
39+
"name": "Run Web Extension in VS Code",
40+
"type": "pwa-extensionHost",
41+
"debugWebWorkerHost": true,
42+
"request": "launch",
43+
"args": [
44+
"--extensionDevelopmentPath=${workspaceFolder}",
45+
"--extensionDevelopmentKind=web"
46+
],
47+
"outFiles": [
48+
"${workspaceFolder}/dist/web/*.js"
49+
]
50+
},
3851
{
3952
"name": "Debug ANTLR4 grammar",
4053
"type": "antlr-debug",

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Provides Visual Basic for Applications (VBA) language support in Visual Studio C
2020

2121
<sup>1</sup>Currently full document `Shift+Alt+F` formatting only.
2222

23+
### Web Support
24+
25+
The VBA Pro Extension offers limited support for web environments (e.g. vscode-dev).
26+
This includes syntax highlighting and snippets.
27+
2328
### Syntax Highlighting
2429

2530
The most complete and bug-free TextMate grammar for VBA out there.

dist/web/webextension.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const vscode = require('vscode')
2+
3+
function activate(context) {
4+
// Dummy function for activation in web environment
5+
console.log('VBA extension activated')
6+
}
7+
8+
module.exports = { activate }

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"vscode": "^1.63.0"
2626
},
2727
"main": "dist/client/out/extension",
28+
"browser": "dist/web/webextension.js",
2829
"activationEvents": [],
2930
"contributes": {
3031
"languages": [

0 commit comments

Comments
 (0)