简体   繁体   English

vscode 设置面板为空白

[英]vscode settings pane is blank

For some reason, my vscode is no longer showing any settings in the UI settings pane.出于某种原因,我的 vscode 不再在 UI 设置窗格中显示任何设置。 I can still open my settings.json, but even with my settings editor set to "workbench.settings.editor": "ui", I still get this:我仍然可以打开我的 settings.json,但即使我的设置编辑器设置为“workbench.settings.editor”:“ui”,我仍然得到这个: 设置照片

I'm on macOS Catalina version 10.15.7 and vscode version 1.52.1我在 macOS Catalina 版本 10.15.7 和 vscode 版本 1.52.1

Any ideas on what might be causing this?关于可能导致这种情况的任何想法? Should I make a backup of my settings files and then reset the settings to default?我应该备份我的设置文件,然后将设置重置为默认值吗?

I was having this exact same issue recently, so I was a little disappointed when there were no solutions.我最近遇到了同样的问题,所以当没有解决方案时我有点失望。 I did not have my settings editor set to "workbench.settings.editor": "ui",as you had, so I tried doing that, but after restarting vscode it didn't appear to do anything.我没有像您那样将设置编辑器设置为“workbench.settings.editor”:“ui”,所以我尝试这样做,但是重新启动vscode后它似乎没有做任何事情。

I've been working in the same folder for a while now, so I tried toggling to a different folder to see if somehow that would kickstart vscode into displaying the settings pane.我已经在同一个文件夹中工作了一段时间,所以我尝试切换到另一个文件夹,看看是否会以某种方式启动 vscode 以显示设置窗格。 That did not work, but when I toggled back to the folder that I was originally in, the settings pane was now populating with the normal settings for User and Workspace.这不起作用,但是当我切换回原来所在的文件夹时,设置窗格现在填充了用户和工作区的正常设置。

A little bit more troubleshooting and it seems like if I have the settings pane already open in the workspace when the workspace loads (either by toggling to a new folder or by restarting vscode), I can see the settings, but if the settings pane is not already open in a workspace and I try to open it, I get a blank page.更多的故障排除,似乎如果我在工作区加载时已经在工作区中打开了设置窗格(通过切换到新文件夹或重新启动 vscode),我可以看到设置,但如果设置窗格是尚未在工作区中打开,我尝试打开它,我得到一个空白页。 I also noticed that the settings pane that appears when you load a fresh workspace is stuck on one tab (ie the settings don't change if you toggle between User and Workspace), but if I close and reopen the tab (not the whole workspace), it works as expected.我还注意到,当您加载新工作区时出现的设置窗格卡在一个选项卡上(即,如果您在用户和工作区之间切换,设置不会更改),但是如果我关闭并重新打开选项卡(不是整个工作区),它按预期工作。 Here's a gif to prove I'm not crazy:这是一个 gif 来证明我没有疯:

This is me just clicking around to show the behavior I'm describing这是我只是单击以显示我正在描述的行为

I can't embed the picture because of my reputation, but hopefully that shows the behavior I am seeing.由于我的声誉,我无法嵌入图片,但希望这能显示我所看到的行为。 I wouldn't be surprised if at the end of the day this is still somehow my fault because of my settings or something, but hopefully this helps someone else.如果归根结底,由于我的设置或其他原因,这仍然是我的错,我不会感到惊讶,但希望这对其他人有所帮助。

Small Edit Just wanted to point out that I acknowledge that this is not an actual solution to the underlying problem, but it's certainly worked well enough for me for now, maybe some one else can chime in with the true solution.小编辑只是想指出,我承认这不是潜在问题的实际解决方案,但它现在对我来说确实足够好,也许其他人可以加入真正的解决方案。

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

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