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

Improve PSI initialization, add writing setup #69

Merged
merged 25 commits into from
Feb 5, 2024

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Feb 4, 2024

This PR improves the initialization of IntelliJ PSI environment allowing write operations.

  • Environment object was introduced, using the setup code previously adopted for parsing in ProtoData.
  • FileSystem object was introduced for creating PsiJavaFile from existing File.
  • PsiWrite object was introduced as a façade for performing additional configuration of PSI required for handling operations that modify the PSI tree.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Feb 4, 2024
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review February 5, 2024 17:50
@alexander-yevsyukov alexander-yevsyukov merged commit c3a0849 into master Feb 5, 2024
6 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the more-on-tree-handler-ext branch February 5, 2024 18:08
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.

2 participants