Skip to content

Commit 0812b90

Browse files
authored
Merge pull request #1227 from trespasserw/patch-1
Unwarranted use of `VirtualFileManagerEx`
2 parents cd67be1 + 81c8cb5 commit 0812b90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/org/ice1000/julia/lang/psi/julia-navigation.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import com.intellij.openapi.application.ReadAction
1212
import com.intellij.openapi.editor.Editor
1313
import com.intellij.openapi.fileEditor.FileDocumentManager
1414
import com.intellij.openapi.vfs.LocalFileSystem
15-
import com.intellij.openapi.vfs.ex.VirtualFileManagerEx
15+
import com.intellij.openapi.vfs.VirtualFileManager
1616
import com.intellij.psi.PsiDirectory
1717
import com.intellij.psi.PsiElement
1818
import com.intellij.psi.PsiManager
@@ -45,7 +45,7 @@ class JuliaGotoDeclarationHandler : GotoDeclarationHandler {
4545

4646
fun arrayOfPsiElements(dir: PsiDirectory, text: String): Array<PsiElement>? {
4747
val url = dir.virtualFile.url + File.separator + text
48-
val vf = VirtualFileManagerEx.getInstance().findFileByUrl(url) ?: return null
48+
val vf = VirtualFileManager.getInstance().findFileByUrl(url) ?: return null
4949
val f = PsiManager.getInstance(project).findFile(vf) ?: return null
5050
return arrayOf(f)
5151
}
@@ -294,4 +294,4 @@ fun Int.toColor() = Color(
294294
this shr 16 and 0xFF,
295295
this shr 8 and 0xFF,
296296
this and 0xFF
297-
)
297+
)

0 commit comments

Comments
 (0)