You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(java): refactor code to use runReadAction and replace string operation
The code has been refactored to use `runReadAction` for better performance when working with PSI elements. The string replacement operation has been changed to ensure that the new code is inserted at the beginning of the document instead of after the last class, which was the previous behavior. This commit also includes the import statements for `PsiElementFactory` and `PsiJavaFile` within the `runReadAction` block to ensure that they are executed during the read action.
0 commit comments