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

Allow code actions to be created if no Diagnostics is provided #1516

Closed
vrubezhny opened this issue May 3, 2023 · 0 comments · Fixed by #1517
Closed

Allow code actions to be created if no Diagnostics is provided #1516

vrubezhny opened this issue May 3, 2023 · 0 comments · Fixed by #1517
Assignees
Milestone

Comments

@vrubezhny
Copy link
Contributor

Currently org.eclipse.lemminx.services.XMLCodeActions.doCodeActions(CodeActionContext, Range, DOMDocument, SharedSettings, CancelChecker) requires a Diagnostics to be explicitly set in CodeActionContext in order to acquire code actions from ICodeActionParticipant' -s defined.

This doesn't allow the creation of CodeAction -s that do not require any error/warning/info/etc. diagnostic for a document range, like, for example, for refactoring or code snippets.

In order to allow the creation of code actions for any document position (even if there is no any diagnostic is created for such a position) we need to make diagnostics to be optional in XMLCodeActions.doCodeActions(...)

@vrubezhny vrubezhny self-assigned this May 3, 2023
@vrubezhny vrubezhny added this to the 0.26.0 milestone Jun 15, 2023
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 a pull request may close this issue.

1 participant