Skip to content

Commit 7cac6e9

Browse files
author
Igor Olshevsky
committed
added field to manifest file
1 parent d1d2f54 commit 7cac6e9

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

example/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"name": "test-extension",
55
"publisher": "test-publisher",
66
"extensionID": "OZSPD1iC1A2tOjW",
7+
"activationEvents": [
8+
"onLanguage:go"
9+
],
710
"scripts": {
811
"cdebase:prepublish": "echo 'Prepublish!'"
912
}

src/cli/manifest.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ func readManifest(manifestFlag string) (*Manifest, error) {
2525
}
2626

2727
type Manifest struct {
28-
Name string `json:"name"`
29-
Main string `json:"main"`
30-
Readme string `json:"readme"`
31-
Version string `json:"version"`
32-
Publisher string `json:"publisher"`
33-
ExtensionID string `json:"extensionID"`
34-
Scripts struct {
28+
Name string `json:"name"`
29+
Main string `json:"main"`
30+
Readme string `json:"readme"`
31+
Version string `json:"version"`
32+
Publisher string `json:"publisher"`
33+
ExtensionID string `json:"extensionID"`
34+
ActivationEvents []string `json:"activationEvents"`
35+
Scripts struct {
3536
Prepublish string `json:"cdebase:prepublish"`
3637
} `json:"scripts"`
3738
}

0 commit comments

Comments
 (0)