Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic support for CodeAction.isPreferred #1063

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

fredrikekre
Copy link
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
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