Skip to content
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

Implement LSP command in CLI executable #11

Open
MaxDesiatov opened this issue Jun 2, 2019 · 0 comments
Open

Implement LSP command in CLI executable #11

MaxDesiatov opened this issue Jun 2, 2019 · 0 comments
Assignees
Projects

Comments

@MaxDesiatov
Copy link
Owner

MaxDesiatov commented Jun 2, 2019

This requires #27 to be fully implemented.

CLI invocation of the form typology lsp should start an LSP server listening on some default port. This server should be able to typecheck isolated files and provide name resolution for declarations defined in those files. Resolving declarations across files and modules would be implemented as a part of a separate issue.

We can reuse the existing LanguageServerProtocol module in sourcekit-lsp. I'm linking to a fork as we will still need to make that module importable in Typology by defining it as a product in our fork.

To test the server, it makes sense to build a simple VS Code extension as described in Language Server Extension Guide. In the first implementation, we can start with supporting only DidSaveTextDocument notification to type check the opened file when it's saved and emit diagnostics for discovered errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.1 release
  
To do
Development

No branches or pull requests

2 participants