You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.80.2
OS Version: Win10
I use VS Code via remote connection. I connect from a Windows machine to a Linux machine. Then I SSH from a Linux machine to another Linux machine.
If I have a local file and try to modify it, I'm unable to open file from a server that I SSH:d to as it always open local copy of that file.
Steps to Reproduce:
0. Start remote VS code session towards server (s1).
Clone a repo (r1) to a server s1.
Change any file (f1).
In Terminal, SHH to another server (s2).
Clone same repo r1 to that server s2 in the same location as on server s1.
List file (f1) on server s2.
Ctrl+click on that file name (f1).
Observer that editor will open f1 version from s1 (in other words modified version of the file f1).
There seems to be similar issue when you do the following:
Start VS code on a Windows machine
SSH to a Linux server
try to Click-open any file.
You will get an error "no matching results" with Linux path to a file being mangled in a Windows way
If you have a Linux machine on which you run VS Code, cases one and two will be the same.
In this second case I get a clear error as file is not present locally (due to Linux vs Windows file path differences). In the first example file being opened is a local copy of that file as location of the file is the same both locally and on a remote server (as both machines have same file system type). This can lead to confusion as user will be looking at the wrong version of the file. I think an error/warning should be displayed to the user to ensure that it's clear that requested file can't be open. Currently you get an editor and path in the tab name looks fine. In reality it's local copy of the file and not from a remote server.
There probably should be a way to open file from a remote server in the current window.
The text was updated successfully, but these errors were encountered:
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.81.1. Please try upgrading to the latest version and checking whether this issue remains.
How are you expecting that vscode would open the folder from s2 when s2 is not open in the window?
The terminal link detection can only guess at which file a path segment refers to, and it only knows about the workspace open in the vscode window, it doesn't know that you ran ssh and connected to a different machine.
Does this issue occur when all extensions are disabled?: Yes
I use VS Code via remote connection. I connect from a Windows machine to a Linux machine. Then I SSH from a Linux machine to another Linux machine.
If I have a local file and try to modify it, I'm unable to open file from a server that I SSH:d to as it always open local copy of that file.
Steps to Reproduce:
0. Start remote VS code session towards server (s1).
There seems to be similar issue when you do the following:
If you have a Linux machine on which you run VS Code, cases one and two will be the same.
In this second case I get a clear error as file is not present locally (due to Linux vs Windows file path differences). In the first example file being opened is a local copy of that file as location of the file is the same both locally and on a remote server (as both machines have same file system type). This can lead to confusion as user will be looking at the wrong version of the file. I think an error/warning should be displayed to the user to ensure that it's clear that requested file can't be open. Currently you get an editor and path in the tab name looks fine. In reality it's local copy of the file and not from a remote server.
There probably should be a way to open file from a remote server in the current window.
The text was updated successfully, but these errors were encountered: