Skip to content

Commit

Permalink
Merge pull request #22 from CGNonofr/master
Browse files Browse the repository at this point in the history
Remove prints on stdout as it breaks the protocol
  • Loading branch information
tangzx authored Nov 27, 2019
2 parents 6486715 + 18a6b21 commit 2d0fe7f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
true
}
removeList.forEach {
println("[-] ${it.uri}")
it.parent.removeFile(it)
}
}
Expand Down Expand Up @@ -310,7 +309,6 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
findOrCreate(parent, true).first) ?: return null

return try {
println("[+] $fileURI")
val content = text ?: LoadTextUtil.getTextByBinaryPresentation(file.readBytes())
folder.addFile(file.name, content)
} catch (e: Exception) {
Expand All @@ -327,7 +325,6 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
override fun removeFile(uri: String) {
val file = findFile(uri)
file?.let {
println("[-] $uri")
it.parent.removeFile(it)
}
}
Expand All @@ -348,4 +345,4 @@ class LuaWorkspaceService : WorkspaceService, IWorkspace {
project.putUserData(IConfigurationManager.KEY, configurationManager)
project.putUserData(IFileManager.KEY, fileManager)
}
}
}

0 comments on commit 2d0fe7f

Please sign in to comment.