Skip to content

Commit 67549d6

Browse files
committed
修改为覆盖api
1 parent 196470d commit 67549d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ object ExtendApiService {
1515

1616
fun loadApi(project: Project, api: LuaReportApiParams) {
1717
val mgr = PsiManager.getInstance(project)
18-
if (rootNamespace == null) {
19-
rootNamespace = Namespace("CS", null, mgr, false)
20-
}
18+
rootNamespace = Namespace("CS", null, mgr, false)
19+
namespaceMap.clear()
20+
classMap.clear()
2121

2222
for (luaClass in api.classes) {
2323
val classNs = getNamespace(luaClass.namespace)

0 commit comments

Comments
 (0)