How to make language server read URL if URL is not a file (for example a file inside a ZIP archive) #2728
Unanswered
LordOfDragons
asked this question in
Extension Development QnA
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've written a language server for VSCode for a scripting language of mine. I have support in the language server to search and parse files from archive files. I then create URLs in hover information which is not a real file path but something like "delga://path" which the language server would be able to read the file inside an archive file.
This all works inside the language server but not outside.
If for example a user clicks on such a URL I generated in a hover information then VSCode fails to open the file since it tries to open it as a disk file but in truth it is a file from inside an archive.
How can I make it VSCode knows to let the language server intercept opening URLs if it contain a "special" URL only the language server can open and read the content of?
Beta Was this translation helpful? Give feedback.
All reactions