Skip to content

Commit 2d0fe7f

Browse files
authored
Merge pull request #22 from CGNonofr/master
Remove prints on stdout as it breaks the protocol
2 parents 6486715 + 18a6b21 commit 2d0fe7f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
204204
true
205205
}
206206
removeList.forEach {
207-
println("[-] ${it.uri}")
208207
it.parent.removeFile(it)
209208
}
210209
}
@@ -310,7 +309,6 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
310309
findOrCreate(parent, true).first) ?: return null
311310

312311
return try {
313-
println("[+] $fileURI")
314312
val content = text ?: LoadTextUtil.getTextByBinaryPresentation(file.readBytes())
315313
folder.addFile(file.name, content)
316314
} catch (e: Exception) {
@@ -327,7 +325,6 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
327325
override fun removeFile(uri: String) {
328326
val file = findFile(uri)
329327
file?.let {
330-
println("[-] $uri")
331328
it.parent.removeFile(it)
332329
}
333330
}
@@ -348,4 +345,4 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
348345
project.putUserData(IConfigurationManager.KEY, configurationManager)
349346
project.putUserData(IFileManager.KEY, fileManager)
350347
}
351-
}
348+
}

0 commit comments

Comments
 (0)