SSH 远程无法在 Microsoft Visual Studio Code 上运行

问题描述 投票:0回答:1

Visual Studio 上的远程 ssh 工作正常。但我刚刚安装了 Docker 扩展。之后,VS 尝试从我的遥控器上的

.profile
文件加载所有内容,但它不起作用。我卸载了 Docker 扩展。我认为删除/编辑 VS 在远程计算机上编写的一些文件应该会有所帮助(在
.vscode-server
文件夹内)。你能帮我解决这个问题吗?

这是我在日志输出文件中看到的。

6e1dff78f10: running
Acquiring lock on /home/username/.vscode-server/bin/3a6960b964327f0e3882ce18fcebd07ed191b316/vscode-remote-lock.username.3a6960b964327f0e3882ce18fcebd07ed191b316
Installation already in progress...
If you continue to see this message, you can try toggling the remote.SSH.useFlock setting
76e1dff78f10: start
exitCode==24==
listeningOn====
osReleaseId==centos==
arch==x86_64==
tmpDir==/run/user/609516==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
76e1dff78f10: end
linux visual-studio-code server remote-server macos-catalina
1个回答
3
投票

您必须使用 VS Code 命令:

Remote-SSH: Kill VS Code Server on Host...

  1. 打开命令面板(
    Ctrl
    +
    Maj
    +
    P
    View
    ->
    Command Palette...
  2. Remote-SSH: Kill VS Code Server on Host...
  3. 选择有问题的主机
  4. 重新启动 VS Code
  5. 再试一次
© www.soinside.com 2019 - 2024. All rights reserved.