- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
move sql linter to config instead of feat flag #6665
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
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
| Breaking changes detected in the OpenAPI specification! | 
| Breaking changes detected in the OpenAPI specification! | 
| return commentLines; | ||
| } | ||
|  | ||
| getExtension(): Extension[] { | 
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 last argument in getExtension is the Diagnostics, so we can use that to configure sql linter instead of putting it on this class (so it will reactively update the extensions)
| constructor() { | ||
| try { | ||
| this.sqlLinterEnabled = getFeatureFlag("sql_linter"); | ||
| this.sqlLinterEnabled = isSqlLinterEnabled(); | 
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.
for feature-flags it is fine if it requires a restart, but real config, it would be preferrable to have it enable when turned on without a refresh
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.
got it, thanks! this should be ready and #6666 can be merged into this
| Breaking changes detected in the OpenAPI specification! | 
| Breaking changes detected in the OpenAPI specification! | 
40fe492    to
    4e5ce35      
    Compare
  
    | Breaking changes detected in the OpenAPI specification! | 
4e5ce35    to
    40fe492      
    Compare
  
    ## 📝 Summary <!-- Provide a concise summary of what this pull request is addressing. If this PR fixes any issues, list them here by number (e.g., Fixes #123). --> By default works for internal duckdb engine so is safe for release. Some docs update too: <img src="https://github.com/user-attachments/assets/dcbd9916-0db0-4074-a147-727a797f0576" width="600" /> ## 🔍 Description of Changes <!-- Detail the specific changes made in this pull request. Explain the problem addressed and how it was resolved. If applicable, provide before and after comparisons, screenshots, or any relevant details to help reviewers understand the changes easily. --> ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [x] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected.
40fe492    to
    9812e79      
    Compare
  
    | Breaking changes detected in the OpenAPI specification! | 
📝 Summary
Turns sql_linter on by default and moves it to config under Editor
🔍 Description of Changes
📋 Checklist