Skip to content

Commit e8a39f9

Browse files
author
Igor Olshevsky
committed
hotfix for extensionID
1 parent 7cac6e9 commit e8a39f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"main": "main.js",
44
"name": "test-extension",
55
"publisher": "test-publisher",
6-
"extensionID": "OZSPD1iC1A2tOjW",
76
"activationEvents": [
87
"onLanguage:go"
98
],

src/cli/extensions.go

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ func NewExtension(dir string, entry string) (*Extension, error) {
5858
}
5959

6060
func init() {
61-
fmt.Println(">>>")
6261
commands = append(commands, cli.Command{
6362
Name: "extension",
6463
Aliases: []string{"e"},

src/cli/manifest.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ func (m *Manifest) ReadArtifacts(dir string) error {
9696
return fmt.Errorf(`extension manifest must contain a "publisher" string property referring to a username or organization name on Sourcegraph (the extension ID will be %q)`, "publisher/"+m.Name)
9797
}
9898

99-
//m.ExtensionID = fmt.Sprintf("%s/%s", m.Publisher, m.Name)
99+
m.ExtensionID = fmt.Sprintf("%s/%s", m.Publisher, m.Name)
100+
101+
fmt.Printf("ExtensionID: %s\n", m.ExtensionID)
100102

101103
return nil
102104
}

0 commit comments

Comments
 (0)