Skip to content

Commit 4a219c7

Browse files
committed
(GH-649) Reduce Activation Events
This commit removes unneeded activation points from the activationEvents field in the package.json. It was reported that the extension is activating at times when the user does not want it to, removing uncessary ones is the solution. The Bolt commands would trigger activation of the extension when the command palate is used, even when there isn't any content in the workspace to warrant it. The PDK Commands are only able to be used if inside a puppet module. The core activation events will cover making these commands available, so they can be removed.
1 parent 32e3862 commit 4a219c7

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- ([GH-649](https://github.com/puppetlabs/puppet-vscode/issues/649)) Reduce activation events for extension
12+
913
## [0.26.1] - 2020-05-12
1014

1115
### Changed

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,7 @@
5959
"workspaceContains:**/*.pp",
6060
"workspaceContains:**/*.epp",
6161
"workspaceContains:**/Puppetfile",
62-
"onCommand:extension.puppetShowConnectionLogs",
63-
"onCommand:extension.puppetShowConnectionMenu",
64-
"onCommand:extension.puppetLint",
65-
"onCommand:extension.puppetParserValidate",
66-
"onCommand:extension.puppetResource",
67-
"onCommand:extension.pdkNewModule",
68-
"onCommand:extension.pdkNewClass",
69-
"onCommand:extension.pdkNewTask",
70-
"onCommand:extension.pdkTestUnit",
71-
"onCommand:extension.pdkValidate",
72-
"onCommand:puppet-bolt.OpenUserConfigFile",
73-
"onCommand:puppet-bolt.OpenUserInventoryFile"
62+
"onCommand:extension.pdkNewModule"
7463
],
7564
"main": "./out/extension",
7665
"contributes": {

0 commit comments

Comments
 (0)