Skip to content

Code Action | expand ternary expr#2461

Closed
redne-w wants to merge 2 commits intoswiftlang:mainfrom
redne-w:redne-w-expand-ternary-expr
Closed

Code Action | expand ternary expr#2461
redne-w wants to merge 2 commits intoswiftlang:mainfrom
redne-w:redne-w-expand-ternary-expr

Conversation

@redne-w
Copy link
Copy Markdown

@redne-w redne-w commented Jan 20, 2026

Code Action -- Expand ternary Expr

Registered the code action for expand ternary expr.
Supress sourcekitd implementation of the same code action.

redne-w and others added 2 commits January 20, 2026 15:19
Add the sourcekitd "expand.ternary.expr" refactoring to the
superseded list to prevent duplicate code actions now that we
have a swift-syntax implementation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

High-level comment: I don’t think you need to re-implement what you’ve done in swiftlang/swift-syntax#3247. Just make ExpandTernayrExpr conform to SyntaxCodeActionProvider.

@redne-w redne-w closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants