Skip to content

asWebviewUri doesn't return the correct Uri when remote authority is localhost:[port] #130151

Closed

Description

@jsjoeio

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.58.2
  • OS Version: macOS 11.4

Steps to Reproduce:

I wrote a test case inside VS Code which reproduces the error. Then I added a patch which fixes it.

This is what asWebviewUri currently returns (bug) https://vscode-remote%2Blocalhost:8080.vscode-resource.vscode-webview.net/Users/codey/file.html and then is what it should return with the fix https://vscode-remote%2Blocalhost.vscode-resource.vscode-webview.net:8080/Users/codey/file.html

Activity

  1. mjbvz commented on Aug 20, 2021

    @mjbvz
    Contributor

    Does this reproduce in the latest VS Code insiders build?

  2. added
    info-needed
    on Aug 20, 2021
  3. jsjoeio commented on Aug 23, 2021

    @jsjoeio
    ContributorAuthor

    Hmm...I'm not sure how to reproduce this in Insiders 🤔 This only happens when running VS Code in the browser.

    Is there a way to run Insiders as a web app? That would recreate the environment for me to reproduce.

  4. mjbvz commented on Aug 23, 2021

    @mjbvz
    Contributor

    You can run yarn web from a local build or for codes-spaces / github.dev, click on the gear and select switch to insiders

  5. jsjoeio commented on Aug 23, 2021

    @jsjoeio
    ContributorAuthor

    I couldn't reproduce, but I did a test to make sure it works as expected.

  6. mjbvz commented on Aug 23, 2021

    @mjbvz
    Contributor

    Thanks for testing. Let me know if you still see this in VS Code 1.60+

  7. added
    *not-reproducible
    and removed
    info-needed
    on Aug 23, 2021
  8. locked and limited conversation to collaborators on Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*not-reproducible

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions