File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,12 @@ func New(options *Options) *API {
124
124
// ignores the VSIX asset URL provided to VS Code in the response.
125
125
r .Get ("/publishers/{publisher}/vsextensions/{extension}/{version}/{type}" , api .assetRedirect )
126
126
127
+ // This is the URL you get taken to when you click the extension's names,
128
+ // ratings, etc from the extension details page.
129
+ r .Get ("/item" , func (rw http.ResponseWriter , r * http.Request ) {
130
+ httpapi .WriteBytes (rw , http .StatusOK , []byte ("Extension pages are not supported" ))
131
+ })
132
+
127
133
return api
128
134
}
129
135
Original file line number Diff line number Diff line change @@ -245,6 +245,11 @@ func TestAPI(t *testing.T) {
245
245
Status : http .StatusMovedPermanently ,
246
246
Response : "/files/publisher/extension/version/extension.vsix" ,
247
247
},
248
+ {
249
+ Name : "Item" ,
250
+ Path : "/item" ,
251
+ Status : http .StatusOK ,
252
+ },
248
253
}
249
254
250
255
extdir := filepath .Join (t .TempDir (), "extensions" )
You can’t perform that action at this time.
0 commit comments