denoland / denoland/vscode_deno

remote files with credentials cannot be opened in vscode

Open
#696 2 comments 1 reaction 0 assignees View on GitHub
design limitation
Dominant language
TypeScript
Stars
1.5k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. First reproduce the private HTTPS import-map case in VS Code using the reported Deno and extension versions, then trace how the extension handles the deno:/ resource containing credentials. Done means the referenced remote file opens and can be edited normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.