-
Notifications
You must be signed in to change notification settings - Fork 186
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
Handle non-file URIs #1605
Comments
Does this mean the reported uri to the language server when opening the document should also have an http scheme? If we open it as a scratch buffer then we can't rely on |
I'm trying this out locally now and what you claim isn't actually true. The scheme is not
So both server and client have IMO bugs.
I'll be focussing on just http(s) schemes, not |
I'm looking into this a bit more and it's a custom protocol extension to show these kinds of documents. So vscode-specific client glue. 👎 I guess the idea is to ask a plugin for the content of So you need an LSP-Deno helper package. |
I have something working here :) Schermopname.2021-03-11.om.22.23.53.movStill, LSP doesn't attach to such a view because it has no filename. That's another can of worms I guess. |
@rwols Great. Can I expect we will have |
It’s done when it’s done. |
A helper package called LSP-Deno will appear on packagecontrol.io soon. This will allow you to goto-def on remote files and find-references on remote files (only when using the quick panel variant presentation). However LSP will not attach the language server to such remote files. I will close this issue and create new ones to make us focus more on the remaining issues. |
Is your feature request related to a problem? Please describe.
At the moment, Goto Definition does not work for remote ES modules that use the HTTP URI scheme. Deno projects import libraries directly from URLs and browser JavaScript projects have supported this for a long while. The current behaviour of Goto Definition shows an empty file.
Describe the solution you'd like
When wanting to go to the definition of a module I'd like to be able to view it's source directly in Sublime. It was suggested the file contents could be fetched and stored in a scratch buffer. It should also continue to work if import maps are being used.
Describe alternatives you've considered
VSCode can already do this. Specifically, the VSCode Deno extension supports this out of the box.
The text was updated successfully, but these errors were encountered: