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 {
124124 // ignores the VSIX asset URL provided to VS Code in the response.
125125 r .Get ("/publishers/{publisher}/vsextensions/{extension}/{version}/{type}" , api .assetRedirect )
126126
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+
127133 return api
128134}
129135
Original file line number Diff line number Diff line change @@ -245,6 +245,11 @@ func TestAPI(t *testing.T) {
245245 Status : http .StatusMovedPermanently ,
246246 Response : "/files/publisher/extension/version/extension.vsix" ,
247247 },
248+ {
249+ Name : "Item" ,
250+ Path : "/item" ,
251+ Status : http .StatusOK ,
252+ },
248253 }
249254
250255 extdir := filepath .Join (t .TempDir (), "extensions" )
You can’t perform that action at this time.
0 commit comments