Skip to content

Commit

Permalink
restart nimsuggest shouldnt count as a project error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Sep 18, 2024
1 parent 2248f67 commit 9b8e71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ proc extensionSuggest*(ls: LanguageServer, params: SuggestParams): Future[Sugges
return SuggestResult()
template restart(ls: LanguageServer, project: Project) =
ls.showMessage(fmt "Restarting nimsuggest {projectFile}", MessageType.Info)
# ns.errorCallback = nil TODO handle errors (they are going to be moved into Project)
project.errorCallback = nil
project.stop()
ls.createOrRestartNimsuggest(projectFile, projectFile.pathToUri)
ls.sendStatusChanged()
Expand Down

0 comments on commit 9b8e71d

Please sign in to comment.