question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In some places, allow to use URL in addition to URI

See original GitHub issue

This 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:open
  • Created 4 years ago
  • Reactions:12
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
akosyakovcommented, Oct 15, 2021

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 just string type can be allowed for external URIs 🙏

5reactions
chdsbdcommented, Apr 17, 2021

As a hack, I was able to pass a string to vscode.env.openExternal(myUrl) instead of using vscode.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found