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

feat: initial code actions backend for Linter service #139

Merged
merged 21 commits into from
May 14, 2021
Merged

Conversation

aminya
Copy link
Member

@aminya aminya commented Mar 19, 2021

  • Moves the old atom-ide-diagnostics code to a separate adapter
  • Adds initial code actions support for the Linter package -> The packages themselves have not implemented this yet

@aminya aminya added the enhancement New feature or request label Apr 2, 2021
@aminya aminya force-pushed the code-actions branch 2 times, most recently from 09ba7e5 to ea2a300 Compare April 2, 2021 12:01
linterName: diagnostic.source,
severity: lsSeverityToV2MessageSeverity(diagnostic.severity ?? DiagnosticSeverity.Error),
// BLOCKED: on steelbrain/linter#1722
solutions: undefined,
Copy link
Member Author

@aminya aminya Apr 2, 2021

Choose a reason for hiding this comment

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

Not sure how to provide solutions from Ls.Diagnostic. We need to first update Linter package

@bennypowers
Copy link
Member

Can you show us a screenshot of the UI?

are there new commands like "show solutions under cursor" or "apply solutions" or something?

@aminya
Copy link
Member Author

aminya commented Apr 4, 2021

Can you show us a screenshot of the UI?

are there new commands like "show solutions under cursor" or "apply solutions" or something?

This is the backend adapter for code actions. The UI isn't implemented yet.

We need to fix these two issues to support the UI as well
steelbrain/linter-ui-default#611
steelbrain/linter#1722

@aminya aminya changed the title Code Actions feat: update code actions Apr 13, 2021
@aminya aminya marked this pull request as ready for review May 14, 2021 07:06
Copy link
Member Author

@aminya aminya left a comment

Choose a reason for hiding this comment

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

This can be merged as of its current state because it is backward compatible and the changes are tested. We should update it later again once Linter and Linter-ui-default actually implemented the UI for this. We can't do anything else here for now.

Because the changes edit multiple files, we should merge this first before we can fix #156

@aminya aminya requested a review from UziTech May 14, 2021 07:17
@aminya aminya changed the title feat: update code actions feat: initial code actions backend for Linter service May 14, 2021
Copy link
Member

@UziTech UziTech left a comment

Choose a reason for hiding this comment

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

LGTM

@aminya aminya merged commit 33887a6 into master May 14, 2021
@aminya aminya deleted the code-actions branch May 14, 2021 14:37
@github-actions
Copy link

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants