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

feat: integrate code refactorings from language-service via LSP - #2050

Merged
atscott merged 1 commit into
angular:mainfrom
devversion:lsp-refactorings
Jul 31, 2024
Merged

atscott merged 1 commit into
angular:mainfrom
devversion:lsp-refactorings

Conversation

@devversion

Copy link
Copy Markdown
Member

This integrates Angular's code refactorings into the extension, so that those are communicated via the LSP to VSCode.

@devversion
devversion requested a review from atscott July 10, 2024 13:05
@devversion
devversion marked this pull request as ready for review July 10, 2024 13:06
@devversion

Copy link
Copy Markdown
Member Author

Blocked on angular/angular#56895

Comment thread client/src/client.ts Resolved
devversion added a commit to devversion/angular that referenced this pull request Jul 16, 2024
This is a performance optimization that would exit early when
code actions are requested, but we know Angular cannot provide fixes
based on the error codes.

Previously, we would unnecessarily compute and analyze the application
for semantic diagnostics.

This will be helpful for: angular/vscode-ng-language-service#2050
atscott pushed a commit to angular/angular that referenced this pull request Jul 16, 2024
This is a performance optimization that would exit early when
code actions are requested, but we know Angular cannot provide fixes
based on the error codes.

Previously, we would unnecessarily compute and analyze the application
for semantic diagnostics.

This will be helpful for: angular/vscode-ng-language-service#2050

PR Close #57000
@atscott atscott added the target: minor This PR is targeted for the next minor release label Jul 17, 2024
@ivanwonder

Copy link
Copy Markdown
Contributor

@atscott Take a look at this PR.

A public API called getSupportedCodeFixes is used to check if the compiler can fix the diagnostics. Remove the unnecessary export custom API.

@devversion
devversion force-pushed the lsp-refactorings branch 2 times, most recently from d3e4d05 to 1479833 Compare July 31, 2024 18:07
@devversion
devversion requested a review from atscott July 31, 2024 18:07
@devversion

Copy link
Copy Markdown
Member Author

Note: This PR also bumps to a next release of the language service. Not sure if this is fine for the versioning in this repository— but I assume yes, given that there is a 18.x branch

This integrates Angular's code refactorings into the extension, so
that those are communicated via the LSP to VSCode.
@atscott
atscott merged commit 54feaa8 into angular:main Jul 31, 2024
@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 Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

detected: feature 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