Skip to content

如何给vscode添加插件仓库的方法 #1

@shipujin

Description

@shipujin

在安装好Slackware系统后编辑 /etc/slackpkg/mirrors 文件,打开 slackbuilds 仓库执行

slackpkg update
slackpkg install vscode-bin
  • 编辑 /opt/vscode-bin/resources/app/product.json
diff --git a/product.json b/product.json
index 9bd0ea1..c13e47b 100644
--- a/product.json
+++ b/product.json
@@ -32,6 +32,11 @@
        "reportIssueUrl": "https://github.com/microsoft/vscode/issues/new",
        "urlProtocol": "code-oss",
        "webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",
+       "extensionsGallery": {
+           "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
+           "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
+           "itemUrl": "https://marketplace.visualstudio.com/items"
+       },
        "builtInExtensions": [{
                "name": "ms-vscode.js-debug-companion",
                "version": "1.0.18",

重新打开vscode 即可成功连接vscode插件仓库

参考资料:https://stackoverflow.com/questions/37143536/no-extensions-found-when-running-visual-studio-code-from-source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions