简体   繁体   English

VSCode 无法在文件资源管理器中打开任何现有文件

[英]VSCode wan't open any existing file in the files explorer

I waked up today and I can't open files in VSCode !我今天醒来,我无法在VSCode中打开文件!

I'm clicking on files in the VSCode Files Explorer and nothing happened.我在VSCode 文件资源管理器中单击文件,但什么也没发生。 But the files from previous work are still opened.但是以前工作的文件仍然打开。

Also, trying to navigate to Go To Definition and things like that are not working.此外,尝试导航到Go To Definition和类似的东西不起作用。 No new files opened.没有打开新文件。

Opening file by Right-Click and select Open With... -> Text Editor is working.通过右键单击和 select Open With... -> Text Editor正在工作。

It seems to be a bug in one of the Python extensions.这似乎是 Python 扩展之一中的错误。

From this result :这个结果

I figured out the issue in the error is coming from the settings.json for VS Code (found here for mac ~/Library/Application Support/Code/User/settings.json ).我发现错误中的问题来自 VS Code 的 settings.json (在此处找到 mac ~/Library/Application Support/Code/User/settings.json )。 There was an extension that updated got updated with a bug.有一个更新的扩展更新了一个错误。 My particular one seems like it came from this line:我的特别的似乎来自这一行:

"workbench.editorAssociations": { "*.ipynb": "jupyter.notebook.ipynb" }

Anyways, hope this is helpful for someone in the future!无论如何,希望这对将来的某人有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM