Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shipujin opened this issue Jun 16, 2023 · 0 comments
Open

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

shipujin opened this issue Jun 16, 2023 · 0 comments

Comments

@shipujin
Copy link
Member

shipujin commented Jun 16, 2023

在安装好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

@shipujin shipujin changed the title 如何给vscode添加插件仓库 如何给vscode添加插件仓库的方法 Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant