-
-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Autocompletions for Config Block #66
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
Comments
Hi @HampB , I had a brief exploration of the idea including implementing an MVP. My thoughts so far
Happy to discuss further |
Hey @ashish10alex , I also agree that speed is important, if it appears laggy even if just a little it's most likely not worth the win. I believe the feature would need to support Snippets would be messy if you're editing an already existing config block I believe? For example:
Could we possibly only activate the autocomplete inside config on ctrl + space rather than on each typed letter? Or maybe a workaround could be some kind of hover that displays the schema? I know to little about vscodes lsp, I'll do some research tomorrow 🙂 |
You point regarding snippets makes sense. |
Hey @ashish10alex
Unfortunately, it doesn't seem possible to activate the To move forward, I see two potential options:
Let me know your thoughts or if there's another direction you'd like to explore |
Hi @HampB , thanks for looking into it. I'd lean on starting with option 2. as it's easy to remember the top level keywords but harder to recall the nested keys. Also, this is something we could build with minimal performance impact. Option (1), we can have but it will be a very hidden feature + has to false by default. Also, once it's turned on there is high probability that user forgets to turn it off and starts thinking that their editor is clunky/slow when using the plugin / vscode. Also, lets use option (1) for at least a month and see our own personal experience using it. |
feat(snippets): assertions and bigquery options in config block should significantly improve the experience of working with config blocks. |
Description
It would be helpful to implement autocompletions when working inside the
config
block. This would enhance the developer experience by providing suggestions and reducing potential errors while writing configurations.Proposed Solution
config
block.config
block for the Language Server Protocol (LSP) to enable autocompletions.Considerations
config
block would need to be maintained to reflect changes in Dataform updates.To build dependencies to dataform version, we should probably not enforce validation at this point, just add autocompletions based of the latest release.
What's the thoughts on this, something we should look into?
The text was updated successfully, but these errors were encountered: