Skip to content

Commit 1dcbdb5

Browse files
committed
(GH-530) Enable extension on workspace load
This commit updates the `activationEvents` array to activate the extension if there are any Puppet manifests or module metadata.json files present. This results in the extensions starting when a folder containing Puppet code is opened, not only after Puppet code is opened. This is a better user experience, as it enables the features a user would want to use without having to have them know to open a Puppet file first.
1 parent b8f6f31 commit 1dcbdb5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
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-530](https://github.com/lingua-pupuli/puppet-vscode/issues/530)) Enable extension with Puppet workspace files
12+
913
## [0.18.1] - 2019-06-07
1014

1115
### Added

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
"activationEvents": [
5454
"onLanguage:puppet",
5555
"onLanguage:puppetfile",
56+
"workspaceContains:**/*.pp",
57+
"workspaceContains:**/*.epp",
58+
"workspaceContains:**/Puppetfile",
5659
"onCommand:extension.puppetShowConnectionLogs",
5760
"onCommand:extension.puppetShowConnectionMenu",
5861
"onCommand:extension.puppetLint",

0 commit comments

Comments
 (0)