mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.5k stars 302 forks source link

Does the extension provide linting functionalities? #974

Closed simplemind closed 2 years ago

simplemind commented 2 years ago

Hi, Could you please let me know if the extension has the functionality to highlight errors in SQL code? I could not find an answer within the list of features. I code in MySQL and I have installed MySQL driver. SQLTools does not prompt any errors and I would like to know if this is because it is not designed to lint SQL code. Or because there is something missing on my end. Thank you Karolis

gjsjohnmurray commented 2 years ago

No, the extension doesn't yet leverage any of the Diagnostic-related parts of the VS Code API, which is how extensions contribute to the Problems view, nor CodeActions which linters typically use to offer fixes.

Interesting idea though...

simplemind commented 2 years ago

Thank you for a quick reply. Good to know its an idea worth considering

mtxr commented 2 years ago

possibly duplicate of #943

gjsjohnmurray commented 2 years ago

@mtxr I agree. Tagged as duplicate and closed.