Skip to content
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

remote files with credentials cannot be opened in vscode #696

Open
iugo opened this issue Jul 14, 2022 · 2 comments
Open

remote files with credentials cannot be opened in vscode #696

iugo opened this issue Jul 14, 2022 · 2 comments

Comments

@iugo
Copy link
Contributor

iugo commented Jul 14, 2022

Describe the bug

When there is a private HTTPS dependency and the import map is used, there is a situation where the file cannot be opened.

To Reproduce

  1. Create a GitHub private repository, create a ts file, and export any variables.
  2. Set the import map in the deno project and use the above private repository.
  3. Reference the alias in the import map in the deno project.
  4. Click to open the referenced file.

Expected behavior

The file is expected to open normally, but cannot be edited.

The file cannot actually be opened.

Screenshots

Unable to resolve text model content for resource deno:/https/x-access-token%3Axxx$40raw.github/file.ts

Screen Shot 2022-07-13 at 18 08 07

If applicable, add screenshots to help explain your problem.

Versions

vscode: Version: 1.69.0 deno: 1.22.3 extension: v3.13.0

@iugo
Copy link
Contributor Author

iugo commented Jul 28, 2022

@kitsonk kitsonk changed the title cannot open dependent file remote files with credentials cannot be opened in vscode Jul 28, 2022
@kitsonk
Copy link
Contributor

kitsonk commented Jul 28, 2022

This can use further investigation, but it might be a design limitation. There are limitations to how we can represent "virtual" documents in vscode, and embedding credentials in a URL may be a challenge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants