【code-server入门】code-server使用原生插件市场

修改方法

文件

``
原来的内容

1
2
3
4
5
6
7
"extensionsGallery": {
"serviceUrl": "https://open-vsx.org/vscode/gallery",
"itemUrl": "https://open-vsx.org/vscode/item",
"resourceUrlTemplate": "https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}",
"controlUrl": "",
"recommendationsUrl": ""
}

替换为

1
2
3
4
5
6
7
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items",
"controlUrl": "",
"recommendationsUrl": ""
}

但是我尝试了这个方法,发现并不能按照预期工作,解决方法是在vscode插件市场点击下载插件Download Extension按钮下载好插件后直接拖入coder里右键即可安装

系列文章