Skip to content

URI vs URL and going forward #83645

Closed
Closed

Description

Nobody can say that I haven't tried... In fact, I have tried twice but "fixing" our uri implementation isn't possible anymore.

Basically there are two camps - camp A correctly says that our URI has encoding/decoding issues and looses data. After fixing said issues, camp B correctly says that the URI behaviour has changed and breaks their extensions/persisted data. We are dead in the water as it seems and we need to find a way forward.

Generally, the URI doesn't cause trouble when its used "internally", e.g. renderer talking to extension host or other pieces, but its decode/encode problems show when interacting with a 3rd player, usually a browser when clicking a link or when calling vscode.env.openExternal. Instead of changing the whole of our uri we should look at those problems specifically and I believe the way out is the use of the standard URL-object, e.g places that feed urls into the system, namely link detection and openExternal, should accept an URL-object in addition to our URI object. While adding overload/confusion it provides a clear separation and ends our catchup game.

Activity

  1. added
    feature-request
    on Oct 30, 2019
  2. jrieken commented on Oct 30, 2019

    @jrieken
    ContributorAuthor

    Work packages

  3. Tyriar commented on Oct 30, 2019

    @Tyriar
    Contributor

    🎉 assigned #74604 to Nov to remind me to fix in terminal

  4. DanTup commented on Nov 8, 2019

    @DanTup
  5. jrieken commented on Nov 29, 2019

    @jrieken
    ContributorAuthor

    Matt Bierner (@mjbvz) fyi - I have pushed a716943 which helps with links that are rendered in Webviews.

  6. added
    verification-needed
    on Dec 2, 2019
  7. jrieken commented on Dec 2, 2019

    @jrieken
    ContributorAuthor

    To verify

  8. added
    verified
    on Dec 4, 2019
  9. locked and limited conversation to collaborators on Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtfeature-requesturiverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions