Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@
],
"outFiles": ["${workspaceRoot}/dist/client/out/test/**/*.js"]
},
{
"name": "Run Web Extension in VS Code",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web"
],
"outFiles": [
"${workspaceFolder}/dist/web/*.js"
]
},
{
"name": "Debug ANTLR4 grammar",
"type": "antlr-debug",
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Provides Visual Basic for Applications (VBA) language support in Visual Studio C

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

### Web Support

The VBA Pro Extension offers limited support for web environments (e.g. vscode-dev).
This includes syntax highlighting and snippets.

### Syntax Highlighting

The most complete and bug-free TextMate grammar for VBA out there.
Expand Down
8 changes: 8 additions & 0 deletions dist/web/webextension.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const vscode = require('vscode')

function activate(context) {
// Dummy function for activation in web environment
console.log('VBA extension activated')
}

module.exports = { activate }
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"vscode": "^1.63.0"
},
"main": "dist/client/out/extension",
"browser": "dist/web/webextension.js",
"activationEvents": [],
"contributes": {
"languages": [
Expand Down