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

bugfix: Don't collect symbols from Inline expansion #4999

Merged
merged 1 commit into from Feb 21, 2023

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Feb 20, 2023

Previously, Metals would have a hanging thread when for example in github.com:Atry/scalajs-all-in-one-template. Now, it doesn't end up in an infinite loop.

I haven't been able to find a proper test for it aside from the very complex example with macros, but we shouldn't need to traverse expansion as it's the tree that is not in the original code.

Fixes #4987

Previously, Metals would have a hanging thread when for example in github.com:Atry/scalajs-all-in-one-template. Now, it doesn't end up in an infinite loop.

I haven't been able to find a proper test for it aside from the very complex example with macros, but we shouldn't need to traverse expansion as it's the tree that is not in the original code.
@tgodzik tgodzik merged commit 3a9ab1d into scalameta:main Feb 21, 2023
@tgodzik tgodzik deleted the fix-expansion branch February 21, 2023 10:37
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 this pull request may close these issues.

High CPU usage on idle in vscode
3 participants