microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.68k stars 296 forks source link

VSCode warns about active terminal sessions that do not exist #10355

Open Navidda opened 1 month ago

Navidda commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes, apart from remote ssh extension to be able to connect to the server

Steps to Reproduce:

  1. Connect to ssh remote
  2. Reload the window

I am using VSCode Remote Extension to connect to my VM, when I try to reload the window, it always shows this warning:

"Do you want to terminate the 6 active terminal sessions?"

However, I don't have any open terminal sessions. I suspected the port forwardings, but there are only two of them.

How can I find out what these open terminal sessions are?

I tried sudo ss -tnp | grep sshd to see open ssh connections but there was only two of them.

My settings.json: https://pastebin.com/CmKK9siq

bamurtaugh commented 1 month ago

Thank you for filing, cc @Tyriar @meganrogge as well

meganrogge commented 1 month ago

This command should help - are you always able to reproduce this?

Image

Navidda commented 4 weeks ago

The command says this:

There are no unattached terminals to attach to

Still reload the window prints the same

meganrogge commented 4 weeks ago

I have no idea what could be going on in that case. @Tyriar, thoughts?