docs: update exception

This commit is contained in:
alinhu1 authored and cqh committed 2025-03-03 22:28:36 +08:00
1 parent 613ed244fc
commit 166223e4d8
7 files changed
+46 -22

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"label": "vscode插件异常",
"position": 6,
"link": {
"type": "generated-index"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

+39
View File
@@ -0,0 +1,39 @@
---
sidebar_position: 1
---
# 如何处理vscode安装插件异常
让我们通过以下步骤来解决插件安装失败
## 1. 检查网络是否异常
在浏览器中输入以下网址,看是否能访问,若能则不存在网络问题
```
https://marketplace.visualstudio.com
```
如果一切正常,您应该在`https://marketplace.visualstudio.com`有一个Extensions for Visual Studio Code的页面。
![vscode扩展页面](./marketplace.png)
## 2. 防火墙阻止
当我们第一次启动调试功能的时候,正常情况vscode会弹出防火墙阻止的界面
![防火墙](./code.png)
## 3. 设置代理
![设置图片](./setting.png)
![json图片](./json.png)
在`setting.json`中添加以下代理
```
"http.proxy": "http://127.0.0.1:7897",
"https.proxy": "http://127.0.0.1:7897",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": false
```
## 4. clash配置
如果以上步骤都解决不了,需要查看以下`clash`的配置是否完成
## 5. 配置恢复
当需要安装的插件安装完成后,就可以上面的代理配置给注释了
Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB