Skip to content

Commit

Permalink
add Add-In extensions to activation events (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo-Gul authored Mar 10, 2024
1 parent e9a2b00 commit 5aad9c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"activationEvents": [
"onLanguage:vba",
"onLanguage:wwb",
"workspaceContains:**/*.{docm,xlsm,pptm}"
"workspaceContains:**/*.{docm,xlsm,pptm,xlam,ppam}"
],
"main": "./out/extension.js",
"capabilities": {
Expand Down
2 changes: 1 addition & 1 deletion src/extension.js.bt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'vscode' as #JS.vscode

@export('activate')
fun activate(context #JS.Any) {
#JS.'JS.vscode.commands.executeCommand("setContext", "vba.ctx.docExts", [".docm", ".xlsm", ".pptm"])'
#JS.'JS.vscode.commands.executeCommand("setContext", "vba.ctx.docExts", [".docm", ".xlsm", ".pptm", ".xlam", ".ppam"])'

#JS.'context.subscriptions.push(JS.vscode.commands.registerCommand("vba.extract_from_doc", extension__extract_from_doc))'
#JS.'context.subscriptions.push(JS.vscode.commands.registerCommand("vba.write_to_doc", extension__write_to_doc))'
Expand Down

0 comments on commit 5aad9c1

Please sign in to comment.