-
Notifications
You must be signed in to change notification settings - Fork 11
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
Context aware autocompletion for macros #171
Conversation
Backend code coverage report for PR #171 |
Frontend code coverage report for PR #171
|
f8c026f
to
8f43e0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, it looks cool! I couldn't test it though, I guess I am missing some piece
LanguageCompletionProvider, | ||
TableDefinition, | ||
TableIdentifier, | ||
// getStandardSQLCompletionProvider, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also I am geting several errors from this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of errors? If you've previously used a locally linked version of grafana/experimental, you may have to make a hard reinstall. yarn install --force && yarn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same than in Drone: https://drone.grafana.net/grafana/redshift-datasource/412/1/5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah that's right - need to merge this PR first :|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think the link above is pointing to another PR. Anyway, should be working fine now!
Too many parallel PR now, so closing this in favor of #174 |
This PR is based on #169 so for the time being it includes its diff.
This PR adds context aware autocompletion for redshift macros. Suggestions are context aware in the sense that macros for columns, tables, filters and groups are differentiated. See example below.
Part of #108
Fixes #170