VS Code 主窗口是空白的 [英] VS Code main window is blank

查看:100
本文介绍了VS Code 主窗口是空白的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我下载了最新版本的 VS Code 并安装了它.

当我启动它时,起初似乎工作正常,我直接进入扩展部分以检查和下载一些,然后我尝试更改排序选项以查看推荐的扩展然后它是第一个症状出现了.我点击了按钮,什么也没发生,我点击了几次,过了一会儿,选择排序类型的窗口也出现了几次(每次我点击按钮可能出现一次).我选择了推荐的扩展名,没有出现扩展名.

我关闭它并再次打开它,但这一次,主窗口完全空白(实际上是黑色).我重新启动了电脑,卸载了应用程序,运行 CCleaner 清除注册表,重新安装了应用程序,所有这些都做了几次,什么也没做.

有时,运行很长时间后,它会显示通常的部分,但是当我关闭它并再次打开它时,一切都一样.此外,工具窗口中的某些选项不起作用,而其他选项起作用(例如关于窗口).

我已查看此常见问题解答:

这是关于窗口:

这是vscode启动几秒后任务管理器的快照:

这些是我的电脑属性:

有没有人遇到过类似的情况?有大佬知道怎么解决吗?


更新 1

当我安装这个新版本时,我注意到它没有删除已安装(和运行)的应用程序的先前版本.(这个版本不是存在于 ProgramFiles 中而是存在于我的用户文件夹中,我认为是在本地 AppSettings 中)

然后我继续卸载它,但愚蠢地错过了程序和功能"中的安装条目,并认为它没有在那里注册,然后我去看看是否能看到卸载程序,我也错过了.故事的其余部分是显而易见的,因为我虽然有这两个版本的问题,但我决定删除最后一个并通过手动删除文件夹,清理注册表等来完成...

我写这个是因为,也许这个旧版本留下了一些配置或注册表信息,如果我遵循正确的方法,这些信息就会被删除,尽管我努力手动删除任何痕迹,但这导致了新的版本故障.例如,我在资源管理器的上下文菜单上仍然有使用代码打开文件的选项,该选项属于旧版本,单击时显示错误消息:未找到应用程序".

解决方案

为 VS Code 1.18(2017 年 11 月 8 日)修复此问题

右键单击快捷方式并将 --disable-gpu 添加到目标:

"C:\Program Files\Microsoft VS Code\Code.exe" --disable-gpu

Yesterday I downloaded the last version of VS Code and installed it.

When I launched it, at first, it seems to work fine, I went directly to the extension sections in order to check and download some, then I tried to change the sorting options to see the recommended extensions and then it was when the first symptom appeared. I clicked the button and nothing happened, I clicked it several times and after a while, the window for selecting the type of sorting appeared several times too (possible once for each time I clicked the button). I chose the recommended extensions, and no extension appeared.

I closed it and reopened it again, but this time, the main window was completely blank (actually, black). I restarted the PC, uninstalled the application, run CCleaner to clear the registry, reinstalled the application, all of that several times and nothing.

Sometime, after a long time running, it shows the usual sections, but when I close it and reopen it again, everything is the same. Also, some options from the tool windows doesn't work, while other do (like the about window).

I've checked this FAQ: https://code.visualstudio.com/docs/supporting/faq#_vs-code-main-window-is-blank but the solution there didn't work neither.

I had a previous version of vscode that worked great. Sadly, I cannot remember which one was, not even a close guest and I removed it when I noticed that installing this new version didn't removed it.

This is how VS Code looks like when I open it:

This is the about window:

This is a snapshot of the task manager a few seconds after vscode is launched:

And these are my computer properties:

Did anyone experience a simmilar situation before? Does anyone know how to fix it?


UPDATE 1

When I installed this new version, I noticed that it didn't remove the previous version of the application that was installed (and working). (This version instead of living on ProgramFiles was living on my User folder, I think on the Local AppSettings)

Then I proceed to uninstall it but stupidly missed the install entry at "Program and Features" and thought it wasn't registered there then I went to see if I could see an uninstaller, which I missed too. The rest of the story is obvious, because I though having these two versions was the problem I was determined to remove this last one and did it by manually deleting the folder, cleaning the registry, etc...

I'm writing this because, maybe, this old version left behind some configuration or registry information that would have been removed if I had followed the correct approach and, although my efforts to manually remove any trail, this is causing the new version to malfunction. For example, I still have the option on the explorer's context menu to open a file with Code, this option belongs to the old version and when clicked, the error message: "Application Not found" is shown.

解决方案

To fix this for VS Code 1.18 (8 November 2017)

Right-click on Shortcut and add --disable-gpu to Target:

"C:\Program Files\Microsoft VS Code\Code.exe" --disable-gpu

这篇关于VS Code 主窗口是空白的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆