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

Add autocomplete API #54

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

zombiezen
Copy link
Collaborator

Completes table names, column names, and let statement identifiers. Completions are AST-aware, even for incomplete sources. This required some slight modification to the parser to still produce useful results for even more malformed inputs, but nothing extensive. The schema can be provided to the autocomplete as optional parameters.

"Suggest completion" operations complete within a few microseconds on my desktop, so the computation itself will almost certainly not be the bottleneck in any web-based UI.

Fixes #39

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.

Add an LSP / Autocompletion support
1 participant