文章目录
前言
这几天使用vscode扩展商店安装插件时发现一搜索就报错,网上搜了一些解决方法,看起来不大靠谱。而且用了好几年了vscode都没出现过这个问题,感觉是网络问题。

解决扩展商店的使用
首先使用阿里大模型搜索vscode扩展商店的官网网址

发现官网网址不可访问

那就是网络问题了,感觉是被墙掉了。自己翻个墙,令官方网址可以访问后,再在vscode上试一下,可以正常使用了。

github的相关问题
翻墙后在浏览器上github可以正常访问,vscode中往远程仓库 git push 时一直报443错误。
通过ping github时发现一直连接不上

解决:
-
网上找github最新可用的hosts,推荐网址:https://github.com/ineo6/hosts?tab=readme-ov-file
-
然后修改自己电脑的host文件,文件路径:C:\Windows\System32\drivers\etc\hosts 把这段加入hosts文件中
-
刷新DNS缓存: 终端中执行 ipconfig /flushdns
-
重新ping github 一下

发现可以了,然后可以正常的git push 了 。