Skip to content

feat(code-action): add quickfix to remove extra with expression#786

Closed
takeokunn wants to merge 1 commit into
mainfrom
feature/add-code-action-15
Closed

feat(code-action): add quickfix to remove extra with expression#786
takeokunn wants to merge 1 commit into
mainfrom
feature/add-code-action-15

Conversation

@takeokunn

@takeokunn takeokunn commented Feb 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add the "remove extra with expression" quickfix as a preferred code action.

Changes

  • Mark DK_ExtraWith diagnostic fixes as isPreferred in CodeAction.cpp

Behavior

Unused with → quickfix offered with isPreferred: true

  • Used with → no removal action offered

Test Plan

  • basic.md, multiline.md, needed-with.md

Related

- Add DK_ExtraWith to preferred code actions in CodeAction.cpp
- Add tests for remove extra with on basic and multiline expressions
- Ensure action is not offered when with is actually needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request nixd:controller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant