Skip to content

Implement basic support for CodeAction.isPreferred#1063

Merged
pfitzseb merged 1 commit intojulia-vscode:masterfrom
fredrikekre:fe/preferred-actions
Apr 29, 2022
Merged

Implement basic support for CodeAction.isPreferred#1063
pfitzseb merged 1 commit intojulia-vscode:masterfrom
fredrikekre:fe/preferred-actions

Conversation

@fredrikekre
Copy link
Copy Markdown
Member

This sends the .isPreferred property to the client if it supports is.
Currently only the action replacing == with === is marked as preferred,
since the other current ones are more situational.

This sends the .isPreferred property to the client if it supports is.
Currently only the action replacing == with === is marked as preferred,
since the other current ones are more situational.
sa.desc, # title
sa.kind, # kind
missing, # diagnostics
client_preferred_support(server) ? sa.preferred : missing, # isPreferred
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Perhaps it is too "strict" to only send this if the client claims to support it -- servers and clients should ignore unknown fields anyway IIUC.

@pfitzseb pfitzseb merged commit 99e9d60 into julia-vscode:master Apr 29, 2022
@fredrikekre fredrikekre deleted the fe/preferred-actions branch April 29, 2022 09:27
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