简体   繁体   English

“没有使用 id 注册视图:codespaces.explorerDetails”和“没有使用 id 注册视图:codespaces.explorer”

[英]"No view is registered with id: codespaces.explorerDetails" and "No view is registered with id: codespaces.explorer"

I am new to Visual Studio Code.我是 Visual Studio Code 的新手。 I have configured my environment for C/C++ development and everything is working.我已经为 C/C++ 开发配置了我的环境,并且一切正常。

However, when starting VS Code, I receive these notifications in the bottom right corner.但是,在启动 VS Code 时,我会在右下角收到这些通知。

  • "No view is registered with id: codespaces.explorerDetails" “没有使用 id 注册视图:codespaces.explorerDetails”
  • "No view is registered with id: codespaces.explorer" “没有使用 id 注册视图:codespaces.explorer”

A deprecated Codespaces extension ms-vsonline.vsonline causes these error messages.不推荐使用的 Codespaces 扩展ms-vsonline.vsonline会导致这些错误消息。 But the extension does not appear in the user interface.但该扩展名不会出现在用户界面中。

You can uninstall the deprecated extension by pasting the following command into a Windows PowerShell terminal:您可以通过将以下命令粘贴到 Windows PowerShell 终端来卸载已弃用的扩展:

code --uninstall-extension ms-vsonline.vsonline

The solution was found here: https://github.com/microsoft/vscode/issues/144971解决方案在这里找到: https ://github.com/microsoft/vscode/issues/144971

For those on a Mac, you may need to set 'code' in the PATH command, before implementing the above solution.对于 Mac 上的用户,在实施上述解决方案之前,您可能需要在 PATH 命令中设置“代码”。

Open the Command Palette (Cmd+Shift+P) in Visual Studio Code and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.在 Visual Studio Code 中打开命令面板 (Cmd+Shift+P) 并键入“shell 命令”以找到 Shell 命令:在 PATH 命令中安装“代码”命令。

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

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