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: integrate code refactorings from language-service via LSP #2050

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

devversion
Copy link
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
Member Author

Blocked on angular/angular#56895

client/src/client.ts Show resolved Hide 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
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
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
5 checks passed
@angular-automatic-lock-bot
Copy link

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