Skip to content

Commit

Permalink
EA-219490 - ISE: FileBasedIndexImpl.getAccessibleFileIdFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsh committed Feb 11, 2020
1 parent 98ead88 commit 57a6704
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lang/clojure-psi-resolve.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package org.intellij.clojure.psi.impl

import com.intellij.lang.Language
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.project.DumbService
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Key
import com.intellij.openapi.util.RecursionManager
Expand Down Expand Up @@ -705,8 +706,10 @@ fun processNamespace(namespace: String,
lastParent: CFile,
place: PsiElement): Boolean {
if (state.get(ALIAS_KEY) != null) return true
val project = lastParent.project
if (DumbService.getInstance(project).isDumb) return true
val lastFile = PsiUtilCore.getVirtualFile(lastParent)
val scope = ClojureDefinitionService.getClojureSearchScope(lastParent.project)
val scope = ClojureDefinitionService.getClojureSearchScope(project)
val nsFiles = FileBasedIndex.getInstance().getContainingFiles(NS_INDEX, namespace, scope)
for (file in nsFiles) {
if (lastFile == file) continue
Expand Down

0 comments on commit 57a6704

Please sign in to comment.