Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

feat(server): support code action - #1723

Merged
atscott merged 1 commit into
angular:mainfrom
ivanwonder:support-codefixes
Aug 4, 2022
Merged

atscott merged 1 commit into
angular:mainfrom
ivanwonder:support-codefixes

Conversation

@ivanwonder

@ivanwonder ivanwonder commented Jul 9, 2022 •

Copy link
Copy Markdown
Contributor

In ts service, the
codeFixes(getCodeFixesAtPosition)
and
refactors(getApplicableRefactors)
are resolved in different request. But in LSP they are resolved in the CodeAction request.
Now, this PR only handles the codeFixes because the @angular/language-service only supports it.

@dylhunn

dylhunn commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

@ivanwonder Would you be able to rebase this PR? Let me know if it's time for review on this as well. Thanks!

@ivanwonder

Copy link
Copy Markdown
Contributor Author

@ivanwonder Would you be able to rebase this PR? Let me know if it's time for review on this as well. Thanks!

@dylhunn Done. You can review it now.

@atscott atscott left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, with a few nits and requests for additional comments. Great work!

Comment thread integration/lsp/ivy_spec.ts Resolved
Comment thread package.json Resolved
Comment thread server/src/session.ts Resolved
Comment thread server/src/session.ts Resolved
Comment thread server/src/session.ts Resolved
Comment thread server/src/session.ts Resolved
@atscott atscott added the target: minor This PR is targeted for the next minor release label Aug 3, 2022
In ts service, the
`codeFixes`([getCodeFixesAtPosition](https://github.com/microsoft/TypeScript/blob/7584e6aad6b21f7334562bfd9d8c3c80aafed064/src/services/services.ts#L2689))
and
refactors([getApplicableRefactors](https://github.com/microsoft/TypeScript/blob/7584e6aad6b21f7334562bfd9d8c3c80aafed064/src/services/services.ts#L2699))
are resolved in different request. But in LSP they are resolved in the `CodeAction` request.
Now, this PR only handles the `codeFixes` because the `@angular/language-service` only supports it.
@ivanwonder
ivanwonder requested a review from atscott August 4, 2022 15:28
@atscott atscott added the action: merge Ready to merge label Aug 4, 2022
@atscott
atscott merged commit a5ecf2d into angular:main Aug 4, 2022
@ivanwonder
ivanwonder deleted the support-codefixes branch August 5, 2022 00:43
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge Ready to merge target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants