v0.6.2 - Bug Fixes and Quality Improvements
Bug Fixes
SQL Diagnostics False Positives
- Fixed backward quote search incorrectly detecting SQL strings across
unrelated code blocks - Added position validation to ensure cursor is within detected string
range - Resolves false "unmatched parentheses" errors on non-SQL code after SQL
functions
Background Highlighting
- Multi-line SQL strings no longer highlight leading whitespace on
continuation lines - Background now starts at first non-whitespace character for cleaner
appearance
New Features
Independent Background Color Control
- New setting:
duckdb-r-editor.enableSQLBackgroundColor - Toggle background highlighting separately from keyword/function
highlighting - Allows customization: keywords only, background only, both, or neither
Code Quality
- Extract SQL_FUNCTION_PATTERN regex to class constant (performance)
- Extract MAX_SQL_STRING_LOOKAHEAD_LINES magic number (clarity)
- Add bounds checking for quote positions (defensive programming)
- Extract theme colors to named constants (maintainability)
All changes are backward compatible. No migration required.
Note: GitHub doesn't auto-populate from git tag annotations - you have to
manually paste them. Alternatively, you can use the GitHub CLI:
gh release create v0.6.2 duckdb-r-editor-0.6.2.vsix --title