In some places, allow to use URL in addition to URI
See original GitHub issueThis is followup work from https://github.com/microsoft/vscode/issues/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:
- the
openExternal
-api - the
DocumentLinkProvider
-api
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:13 (11 by maintainers)
Top Results From Across the Web
What is a Uniform Resource Identifier (URI)? - TechTarget
A Uniform Resource Locator (URL), or web address, is the most common form of URI. It is used for unambiguously identifying and locating...
Read more >URL, URI, URN: What's the Difference? - Auth0
Both URLs and URIs follow the same specification: RFC 3986. However, while URLs allow you to locate a resource, a URI simply identifies...
Read more >URI vs URL: Differences and When to Use Them - Hostinger
URL identifies the web address or location of a unique resource. URI contains components like a scheme, authority, path, and query. URL has ......
Read more >Universal Resource identifiers in WWW
A Uniform Resource Locator (URL), defined elsewhere, is a form of URI which expresses an address which maps onto an access algorithm using...
Read more >vscode.Uri.parse does not work for urls with %2F #112577
Uri.parse to open external URL in the browser. ... The current strategy is to allow string in addition to Uri in some places....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Stumbled on the similar issue while trying to open external with query params for ouath2.
?
in redirect URI gets double encoded. It would be nice if juststring
type can be allowed for external URIs 🙏As a hack, I was able to pass a
string
tovscode.env.openExternal(myUrl)
instead of usingvscode.env.openExternal(vscode.Uri.parse(myUrl))
. I don’t know how robust this is because I had to@ts-ignore
the call, but it works for my use case and my url no longer gets double encoded.