We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d670210 commit 96f245dCopy full SHA for 96f245d
src/main/java/com/tang/intellij/lua/ext/LuaFileFuzzyResolver.kt
@@ -21,9 +21,14 @@ import com.intellij.openapi.project.Project
21
import com.intellij.openapi.vfs.VirtualFile
22
import com.intellij.psi.search.FilenameIndex
23
import com.intellij.psi.search.ProjectAndLibrariesScope
24
+import com.tang.intellij.lua.search.SearchContext
25
26
class LuaFileFuzzyResolver : ILuaFileResolver {
27
override fun find(project: Project, shortUrl: String, extNames: Array<String>): VirtualFile? {
28
+ val context = SearchContext.get(project)
29
+ if (context.forStub)
30
+ return null;
31
+
32
var perfect: VirtualFile? = null
33
val names = shortUrl.split('/')
34
val fileName = names.lastOrNull()
0 commit comments