Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement the Language Server Protocol (LSP) for Dex #414

Closed
apaszke opened this issue Jan 4, 2021 · 4 comments
Closed

Implement the Language Server Protocol (LSP) for Dex #414

apaszke opened this issue Jan 4, 2021 · 4 comments
Labels
tooling / editors Editor integration (syntax highlighting, tooltips, etc)

Comments

@apaszke
Copy link
Collaborator

apaszke commented Jan 4, 2021

The Language Server Protocol (LSP) is a protocol used between languages and IDE-like tools to provide language-aware IDE features, like jump-to-definition, find-all-references, and code completion.

It would be great for Dex to have LSP support: this could be used to implement a Visual Studio Code extension or Emacs mode for Dex, or to augment dex web <file.dx> with language-aware features like hover tooltips showing the types of variables and all references of a variable.

We're brainstorming some grander ideas for redesigning the Dex compiler to be more query-evaluation-oriented and API-oriented, and an LSP implementation overlaps with that vision. There's more design work and discussion to do, so we're not ready to start any implementation yet.

References

Originally posted by @dan-zheng in #375

@apaszke apaszke added the tooling / editors Editor integration (syntax highlighting, tooltips, etc) label Jan 4, 2021
@general-rishkin
Copy link

What is the status of the LSP?
Is there a temporary alternative in the meantime, e.g., for vim or gedit, etc?

@apaszke
Copy link
Collaborator Author

apaszke commented Aug 31, 2021

@sharadmv wrote dex-vim, but it only does syntax highlighting

@general-rishkin
Copy link

Excellent. That something at least. Thanks.

@dan-zheng dan-zheng mentioned this issue Jun 14, 2023
@dan-zheng
Copy link
Collaborator

Subsumed by #1304: adding tooltips to dex web.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
tooling / editors Editor integration (syntax highlighting, tooltips, etc)
Projects
None yet
Development

No branches or pull requests

3 participants