Skip to content

Commit 41347d3

Browse files
committed
添加工作区文件change事件的处理
1 parent 57024fc commit 41347d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,13 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
6767
when (change.type) {
6868
FileChangeType.Created -> addFile(change.uri)
6969
FileChangeType.Deleted -> removeFile(change.uri)
70-
/*FileChangeType.Changed -> {
70+
FileChangeType.Changed -> {
71+
if(change.uri.endsWith("globalStorage")){
72+
return
73+
}
7174
removeFile(change.uri)
7275
addFile(change.uri)
73-
}*/
76+
}
7477
else -> { }
7578
}
7679
}

0 commit comments

Comments
 (0)