generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(javascript): improve test file generation
- Import `LanguageApplicableUtil` in `JSWriteTestService.kt` to fix compilation error. - Replace deprecated `LocalFileSystem.getInstance().findFileByPath()` with `VfsUtil.createDirectoryIfMissing()` and `createChildData()` to create test file. - Use `WriteCommandAction.writeCommandAction()` to create test file in a write command action. - Refactor `suggestTestDirectory()` to use `ReadAction.compute()` and handle null cases properly. - Improve code readability and remove unnecessary code comments.
- Loading branch information
Showing
1 changed file
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters