Skip to content
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

Navigation with :line:column syntax not working for vscode-remote url #7787

Open
EstherPerelman opened this issue Jan 4, 2023 · 5 comments
Labels
wsl Issue in vscode-remote WSL

Comments

@EstherPerelman
Copy link

EstherPerelman commented Jan 4, 2023

This issue occurs when navigating vscode-remote url at specific row and column, see Steps to Reproduce for more information...

  • VSCode Version: 1.74.2
  • Remote Extension/Connection Type: WSL

Steps to Reproduce:

  1. Open any MarkDown file and add there a link to navigate [test url navigation](vscode-remote://file//<path-to-file>)
  2. Open the MarkDown in preview mode - navigation suppose to work
  3. Now add row and column navigation at the end - like this: [test url navigation](vscode-remote://file//<path-to-file>:3:2)
  4. Error Notification appears:
    image
@reynoldsalec
Copy link

@EstherPerelman is the correct syntax for an external link accessed via the SSH Remote plugin something like vscode-remote://ssh-remote+remotehost/path/to/remote/directory? Been trying to nail down that syntax and haven't been able to, sounds like you might be using it...

@EstherPerelman
Copy link
Author

EstherPerelman commented Jan 8, 2023

@reynoldsalec , I'm working with WSL, this is the referrer I had for doing this: https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls

I found an issue which related to ssh urls - there are there suggestions that can help you: #656

@chrmarti
Copy link
Contributor

chrmarti commented Jan 9, 2023

Can you use a relative URL instead? Not all vscode-remote URIs can be easily hand-crafted.

@chrmarti chrmarti added the wsl Issue in vscode-remote WSL label Jan 9, 2023
@reynoldsalec
Copy link

@reynoldsalec , I'm working with WSL, this is the referrer I had for doing this: https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls

I found an issue which related to ssh urls - there are there suggestions that can help you: #656

Exactly what I was looking for @EstherPerelman, huge thanks!

@EstherPerelman
Copy link
Author

Can you use a relative URL instead? Not all vscode-remote URIs can be easily hand-crafted.

@chrmarti in my case I can't use a relative url, will you fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wsl Issue in vscode-remote WSL
Projects
None yet
Development

No branches or pull requests

3 participants