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

perf: use PsiFile instead of using VirtualFile #913

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

angelozerr
Copy link
Contributor

@angelozerr angelozerr commented Mar 21, 2025

perf: use PsiFile instead of using VirtualFile

As we have almost access to PsiFile when language servers are collected, this PR uses now PsiFile:

  • it simplifies the code
  • when file language must be collected, it avoids getting a ReadAction which avoid some freeze.

It is a big change, but as LanguageServiceAccessor is marked as internal, nobody should be impacted.

@angelozerr angelozerr force-pushed the use_psiFile branch 3 times, most recently from ed7caa0 to d59c337 Compare March 21, 2025 16:47
@angelozerr angelozerr marked this pull request as ready for review March 21, 2025 17:16
@angelozerr angelozerr self-assigned this Mar 21, 2025
@angelozerr angelozerr added this to the 0.12.0 milestone Mar 21, 2025
@angelozerr angelozerr merged commit abdb547 into redhat-developer:main Mar 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant