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.
fix(compiler): improve handling of file paths and project roots #101
The commit addresses an issue where the compiler was not correctly handling file paths and project roots, leading to incorrect behavior when processing source files. The fix includes the use of `PsiManager.getInstance(project)` instead of `com.intellij.psi.PsiManager.getInstance(project)` for consistency, and the use of `VirtualFileManager.getInstance().findFileByNioPath(realpath)` to resolve file paths correctly. Additionally, the commit introduces the use of `FilenameIndex` to find files by their names and `PsiManager` to find the language of the file, which were previously not being used. These changes ensure that the compiler handles file paths and project roots more accurately and consistently.
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 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
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