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

-22
View File
@@ -1,22 +0,0 @@
## 如何处理vscode安装插件异常
### 1. 检查网络是否异常,在浏览器中输入以下网址,看是否能访问,若能则无网络问题
`https://marketplace.visualstudio.com`
![网络无异常](./marketplace.png)
### 2. 查看是否出现第一次启动调试功能时,vscode会弹出防火墙阻止
![防火墙成功阻止](./code.png)
### 3. 设置代理
1.打开vscode
2.在其左下角找到齿轮状(Manage)点击找到Settings
3.找到右上角的OpenSettings(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是否配置完成
### 5. 安装插件完成后,将代理配置就可以去掉了
+7
View File
@@ -0,0 +1,7 @@
{
"label": "vscode插件异常",
"position": 6,
"link": {
"type": "generated-index"
}
}
File renamed without changes.
+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

File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB