Skip to content

Language Server: Herb Linter Fix-on-save#758

Merged
marcoroth merged 2 commits intomainfrom
lsp-autofix-linter
Nov 1, 2025
Merged

Language Server: Herb Linter Fix-on-save#758
marcoroth merged 2 commits intomainfrom
lsp-autofix-linter

Conversation

@marcoroth
Copy link
Owner

@marcoroth marcoroth commented Nov 1, 2025

This pull request introduces the functionality for the Herb Language Server to be able to autofix Herb Linter offenses on save.

This builds on the new --fix option in the Herb Linter (introduced in #622), which can automatically correct offenses without formatting the rest of the document.

If both Fix-on-Save and Format-on-Save are active, the Language Server will first fix the offenses and then format the document.

LSP.Autofix.mp4

The Visual Studio Code Extension also exposes a new "Fix on save" toggle:

CleanShot 2025-11-01 at 02 15 50@2x

@marcoroth marcoroth merged commit c5c8c59 into main Nov 1, 2025
9 checks passed
@marcoroth marcoroth deleted the lsp-autofix-linter branch November 1, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant