[英]Visual Studio Code extensions stopped working suddenly
I'm having problem with my Visual Studio Code.我的 Visual Studio Code 有问题。 Yesterday I had my pc shut down with VS Code open, and when I turned pc on again, all VS Code extensions stopped working.
昨天我在打开 VS Code 的情况下关闭了我的电脑,当我再次打开电脑时,所有 VS Code 扩展都停止工作。 I'm using React and Typescript in my project and I really need those extensions.
我在我的项目中使用 React 和 Typescript,我真的需要这些扩展。 My eslint and prettier configurations also stopped working.
我的 eslint 和 prettier 配置也停止工作了。 If somebody had the same problem please answer.
如果有人有同样的问题请回答。
I had this problem too.我也有这个问题。 And it helped: When you open
VSCode
in the View
section then Extensions
in this menu you will find in the corner (right / left depending on your settings) three dots .它有帮助:当您在
View
部分打开VSCode
然后在此菜单中打开Extensions
时,您会在角落找到三个点(右/左取决于您的设置)。 Views and more Actions
click Disable All Installed Extensions
then Enable All Extensions
. Views and more Actions
点击Disable All Installed Extensions
然后Enable All Extensions
。 Restart VSCode and it should be done;重新启动VSCode,应该完成; -) You can make sure again that the extensions are enabled.. Good Luck !
-) 您可以再次确保扩展已启用。祝您好运! Best regards !
此致 ! I hope it works for You !
我希望这个对你有用 ! ;-)
;-)
i too had a similar issue, and found (thru trial and error and multiple stackoverflow searches)我也有类似的问题,并发现(通过反复试验和多次 stackoverflow 搜索)
console
tab console
选项卡$drive:\Users\Yourname.vscode\extensions
$drive:\Users\Yourname.vscode\extensions
I had that problem on WSL (Windows Subsystem for Linux).我在 WSL(Linux 的 Windows 子系统)上遇到了这个问题。 The error was like this:
错误是这样的:
/mnt/c/Users/Admin/.vscode/extensions/ms-vscode-remote.remote-wsl-0.63.13/scripts/wslCode.sh: 69: /home/raul/.vscode-server-server/bin/5554b12acf27056905806867f251c859323ff7e9/bin/code: not found
The solution was to go to Windows PowerShell and open Visual Studio Code, then go to the extensions and restart the Remote - WSL extension, and go back to WSL.解决方案是转到 Windows PowerShell 并打开 Visual Studio Code,然后转到扩展并重新启动Remote - WSL扩展,然后返回到 WSL。 It then started working immediately.
然后它立即开始工作。
It's weird.有点奇怪。 when I use WSL2 terminal opening Visual Studio Code, an exception occurs, expressing that
wslCode.sh: 69
.当我使用 WSL2 终端打开 Visual Studio Code 时,会发生异常,表示
wslCode.sh: 69
。
But when I open Visual Studio Code in Windows, then type code .
但是当我在 Windows 中打开 Visual Studio Code 时,输入
code .
in WSL2 terminal, it works without an exception.在 WSL2 终端中,它毫无例外地工作。
Please check if you are able to turn on your settings sync.请检查您是否能够打开设置同步。 I had an issue like this and I couldn't even access the account option on vs code (the second last icon on the right horizontal panel.
我遇到了这样的问题,我什至无法访问 vs 代码上的帐户选项(右侧水平面板上的倒数第二个图标。
If not (it's a long shot) try uninstalling vs code and reinstalling VS Code completely.如果没有(这是一个很长的镜头)尝试卸载 VS Code 并完全重新安装 VS Code。 I used these commands to do so (works for mac)
我使用这些命令来做到这一点(适用于 mac)
in my case removing "Todo Tree" plugin which is one of the VS Code plugins solved the problem,在我的例子中,删除作为 VS Code 插件之一的“Todo Tree”插件解决了这个问题,
https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree
if it is installed uninstall it and the problem will be solved如果已安装卸载它,问题将得到解决
This happened to me in the portable version (1.73.3).这在便携式版本 (1.73.3) 中发生在我身上。 I deleted the extensions folder
{vscode root}/data/extensions
.我删除了扩展文件夹
{vscode root}/data/extensions
。 Re-installing all extensions afterwards worked for me之后重新安装所有扩展对我有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.