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
[feature] LSP: inform user when rule is invalid #722
Labels
enhancement
New feature or request
Comments
Thanks for the suggestion! It sounds like an LSP client feature to me. Are you using neovim? |
yeah, I am. Nonetheless, I think simply adding a diagnostic stating "config invalid" would already help a lot, and that could be done without any changes on lsp client side? |
The issue is that lsp only checks source code not config YAML. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you use ast-grep as LSP, you are not informed when the linting is not performed due to an invalid rule. Took me a while to come up with the idea to try
ast-grep scan
in the terminal, which revealed that an invalid rule was the cause:I'd suggest displaying a diagnostic at line one with the info "invalid rule...", to inform the user why no linting is taking place.
The text was updated successfully, but these errors were encountered: