Skip to content

Commit fe08cb5

Browse files
committed
Update activationEvents to narrow the watched scope
- new scope requires that a crossplane.yaml is in the workspace for the extension to be activated Signed-off-by: Taylor Thornton <[email protected]>
1 parent e6fa57f commit fe08cb5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ build.ext: install
3232
@yarn compile
3333

3434
package: build.ext
35+
@mkdir -p ./out
3536
@yarn vsce package -o ./out/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ operator, we hope this extension enhances your development experience.
1111
and the [VS Code Up extension].
1212
* [Managing extensions in VS Code].
1313
* **Step 2.** To activate the extension, open any directory or workspace
14-
containing a Crossplane package.
14+
containing a Crossplane package (i.e. one that contains a `crossplane.yaml`).
1515

1616

1717
## Features

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "Up",
55
"preview": true,
66
"publisher": "upboundio",
7-
"version": "0.0.4",
7+
"version": "0.0.5",
88
"description": "Crossplane package support for Visual Studio Code",
99
"main": "./dist/extension.js",
1010
"repository": {
@@ -15,7 +15,9 @@
1515
"url": "https://github.com/upbound/vscode-up/issues"
1616
},
1717
"activationEvents": [
18-
"onLanguage:yaml"
18+
"workspaceContains:crossplane.yaml",
19+
"workspaceContains:*/crossplane.yaml",
20+
"workspaceContains:*/*/crossplane.yaml"
1921
],
2022
"engines": {
2123
"vscode": "^1.52.0"

0 commit comments

Comments
 (0)