-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[remote] Allow to open remote files through vscode://vscode-remote/
#108257
Comments
Currently, URL starting with @dpatou Just pinged me with the same request |
For remote URIs we can't do a stat to find out if the URI is a file or a folder.
@bpasero I think you originally added the |
@aeschli this code is used to support "Open in Desktop" from codespaces, so I am not sure we can do a change that risks breaking this flow. After all, repository names can possibly include ".". |
This seems to be the most reliable, and kinda "fixes" the current caveats of the command line in file/workspace/folder detection. @bpasero does the open in desktop feature of codespace supports opening a given file/line-in-file (I haven't been able to access codespace yet) ? |
No, the idea is only to open workspaces/folders. |
vscode://vscode-remote/
vscode://vscode-remote/
vscode://vscode-remote/
I suggest we allow the In fact it's already works for local files, e.g. |
With the pushed change, it is now possible to open remote files. To indicate that a remote URL is a file, not a folder, the path needs to be followed by |
To verify on WSL (or on any other remote)
|
Ok, my bad, but when using insiders, it's |
I tested the following and all seemed to work properly, opening the file (only) at the appropriate line/column. The last option opened the folder as expected.
If I provided the wrong path, a new unsaved file named
What I can't see, and don't know if its supported, is how to open the folder and the file at the same time, such that the |
Moving out to May and reopening so @chrisdias's comment doesn't get lost but @aeschli please do what you want with this issue. |
to be clear - the files opened in the existing instance of Insiders. opening the folder resulted in a reload of the current instance. |
Through the @chrisdias Can you file a new feature request with your your use case? |
When clicking on link in the form of
vscode://vscode-remote/wsl+distro/path/to/file/in/open/workspace
my current VS Code window is closed, and the file is opened in another window.Expected behaviour would be that the file opens in your already open VS Code instance that's connected to that remote. This is also how VS Code behaves when opening the same file via the command line:
code --remote wsl+remote /path/to/file/in/open/workspace
.Opening the links in your existing session would be great for opening stacktrace links from the browser and going directly to the code.
The text was updated successfully, but these errors were encountered: