-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
In some places, allow to use URL in addition to URI #85930
Comments
is there any progress? @jrieken |
Hi @jrieken, any ETA on resolving this? I cannot find a way out of this encoding problem with
|
I'm blocked on this now too - I need to open URLs that have fragments and they get encoded incorrectly. @jrieken this isn't assigned to any milestone - do you think it's likely to happen in the near future? Would you accept a PR that just adds an overload that takes We can work around it for non-remote workspaces by just launching the browser ourselves, but it'll still be broken in VS Codespaces and friends. |
It isn't a trivial change but feel free to give it a try, code pointer:
|
Before I bite off more than I can chew, what makes you say that? I thought it might just be a case of accepting a (though probably if it was so simple, it would've been done already! ..) |
For remote extension hosts, all uris go through some special handling so that an extension can talk about a (local) file-uri and so that the UI knows that it's a file-uri on the other machine. So, now the question is if URL objects should also go through that mechanism (which requires them to be uris) or not |
I see - it does sound like there's more to it than I thought. I've managed to work around it for now (passing things on the querystring - which isn't affected as much by the encoding - instead of the fragment, and having the receiving app move them over) as I needed a fix for the next release. |
As a hack, I was able to pass a |
Stumbled on the similar issue while trying to open external with query params for ouath2. |
This disables exposing the URL to avoid some VS Code encoding issues (microsoft/vscode#85930) in order to be compatible with DevTools using PageUrlStrategy. It should be restored by changing these functions over to using raw strings where possible instead or Uris (#3799).
It seems like this could be supported by changing the API to note it supports a |
I got bit by this as well: gitkraken/vscode-gitlens#2014 As @DavidGoldman notes, passing a string works and avoids this problem. @jrieken could the .d.ts be updated to allow a string? |
This comment was marked as spam.
This comment was marked as spam.
@jrieken My issue #88273 is marked as duplicated with this issue, but I think it may not same with this. I test following solution, but not work for my situation on windows.
|
Hello. Any chance this can be fixed? an extension that I am building relies on @akosyakov hack worked for me, in the meanwhile. |
Same for me. I'm trying to open an external app with a link in an .md file: VS Code encodes "=" signs A also tried to add the "obsidian://" protocol to accepted protocols for links that are processed by the Markdown preview enhanced extension but still nothing happens in the preview mode of this extension. |
This is followup work from #83645 and in essence it's about allowing to use the
URL
-type when dealing with resources outside of VS Code. So far we have identified:openExternal
-apiDocumentLinkProvider
-apiThe text was updated successfully, but these errors were encountered: