vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Open new WSL window and close local one.

Open Elia0107 opened this issue 5 years ago • 9 comments

As in title, it could be nice if opening a remote-wsl session could also close/replace the current window.

Elia0107 avatar Oct 15 '19 10:10 Elia0107

What command do you use to open a Remote-WSL session?

aeschli avatar Oct 15 '19 20:10 aeschli

Hi, from f1 or the icon in bottom left, there are some choices. One of them is "Reopen folder in...", but works only if I have folder added in workspace. I want some like "Open in WSL" closing the current "windows" window

Elia0107 avatar Oct 18 '19 15:10 Elia0107

Thanks to the developers of this extension and +1 to this feature.

I came looking for this since I saw that the Remote-SSH extension already had support for this

image

legendre6891 avatar Mar 28 '21 15:03 legendre6891

Yes, this is something I miss too Every time I have to use a New WSL Windows which opens a new VSCode instance. It would be better to have a choice of type:

  • New WSL Windows
  • Current Windows WSL (or something like that)

kanlukasz avatar Nov 16 '21 07:11 kanlukasz

What is the status of this request? I know I would get a great deal of benefit from it.

JosephLalli avatar May 01 '22 16:05 JosephLalli

Just to make I'm sure, what you are asking is a command that brings up an empty remote window in place of the currently opened window. Alle existing editors are closed?

aeschli avatar May 02 '22 07:05 aeschli

This is a terrible experience from a UX perspective, and not seemless at all when operating on both Windows files and WSL files.

et304383 avatar May 02 '22 18:05 et304383

Just to make I'm sure, what you are asking is a command that brings up an empty remote window in place of the currently opened window. Alle existing editors are closed?

"A command that brings up an ~~empty remote window~~ new remote window with all currently open files/tabs in place of the currently opened window" That's the feature request, I think. Sometimes I'll be working, I'll have a dozen different files open, and I'll realize I'm not in a WSL environment. I'd like the ability to chose to close the editor window and reopen all tabs in a new WSL window without having to save and close my work beforehand.

JosephLalli avatar May 02 '22 19:05 JosephLalli

The command Connect to WSL (which is in the remote menu by default since a while) opens a WSL distro in the current window. If you already have a folder (or workspace) open and what to reopen the a WSL window, for that we have WSL: Reopen Folder in WSL Reopen with all currently open files/tabs is unfortunately not as trivial to implement as is sounds. It would be good if we capture this in a new issue.

aeschli avatar May 06 '24 07:05 aeschli