Skip to content

Commit 862938f

Browse files
committed
修复 './' 配置无法提示路径的bug
1 parent bb0523b commit 862938f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EmmyLua-LS/src/main/kotlin/com/tang/vscode/WorkspaceRootFileScopeProvider.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ class WorkspaceRootFileScopeProvider : IFileScopeProvider {
6161
}
6262

6363
override fun getSourceRoots(project: Project): Array<ISourceRoot> {
64-
val cm = IConfigurationManager.get(project)
64+
// val cm = IConfigurationManager.get(project)
6565
val list = mutableListOf<ISourceRoot>()
6666
for (root in roots) {
67-
val cfg = cm.getConfigurationFor(root.absoluteDir)
68-
if (cfg == null || cfg.sourceRoots.isEmpty())
69-
list.add(root)
67+
// val cfg = cm.getConfigurationFor(root.absoluteDir)
68+
// if (cfg == null || cfg.sourceRoots.isEmpty())
69+
list.add(root)
7070
}
7171
return list.toTypedArray()
7272
}

0 commit comments

Comments
 (0)