Skip to content

Language Server: Restrict rewrite code actions to open tag range#1592

Merged
marcoroth merged 1 commit intomainfrom
code-actions-open-tag-only
Apr 3, 2026
Merged

Language Server: Restrict rewrite code actions to open tag range#1592
marcoroth merged 1 commit intomainfrom
code-actions-open-tag-only

Conversation

@marcoroth
Copy link
Copy Markdown
Owner

@marcoroth marcoroth commented Apr 3, 2026

This pull request updates the code actions for rewriting HTML elements in the language server only on the line of the HTML open tag itself.

Previously, it took the whole rang of the element and therefore also showed a lot of "unrelated" rewrite actions based on the hierarchy.

Before
CleanShot 2026-04-03 at 04 54 57@2x

After

CleanShot 2026-04-03 at 04 53 22@2x

Resolves #1382

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 3, 2026

npx https://pkg.pr.new/@herb-tools/formatter@1592
npx https://pkg.pr.new/@herb-tools/language-server@1592
npx https://pkg.pr.new/@herb-tools/linter@1592

commit: 3c874a6

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit 3c874a6


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit ef5ebc9 into main Apr 3, 2026
20 checks passed
@marcoroth marcoroth deleted the code-actions-open-tag-only branch April 3, 2026 03:02
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.

Language Server: Keep Action View Tag Helper code action sorting consistent

1 participant