Skip to content

Commit

Permalink
Don't delete old dirtyfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
PMunch committed Nov 9, 2023
1 parent 6eae464 commit e36e39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimlsp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ proc main(ins: Stream | AsyncFile, outs: Stream | AsyncFile) {.multisync.} =
message.textDocumentNotification(DidCloseTextDocumentParams, textDoc):
let projectFile = getProjectFile(uriToPath(fileuri))
debugLog "Got document close for URI: ", fileuri, " copied to ", filestash
removeFile(filestash)
#removeFile(filestash)
projectFiles[projectFile].openFiles.excl(fileuri)
if projectFiles[projectFile].openFiles.len == 0:
debugLog "Trying to stop nimsuggest"
Expand Down

0 comments on commit e36e39b

Please sign in to comment.