Skip to content

[Bugfix] Look for path without percentage encode#3

Open
loynoir wants to merge 1 commit intoSebbia:masterfrom
loynoir:master
Open

[Bugfix] Look for path without percentage encode#3
loynoir wants to merge 1 commit intoSebbia:masterfrom
loynoir:master

Conversation

@loynoir
Copy link

@loynoir loynoir commented Nov 19, 2021

Bugfix:
When import jsonnet path contains special character, fs.statSync(url.parse(fileUri).path) is still percentage encoded, should use logic fs.statSync(url.fileURLToPath(fileUri))

Reproduce:
https://github.com/loynoir/reproduce-vscode-jsonnet.jsonnet

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant