Don't use initialize request id for the internal collectAnalyses call

This commit is contained in:
Alexey Alekhin 2018-04-11 18:37:16 +02:00
parent a8c1239e32
commit a1e3146c08
No known key found for this signature in database
GPG Key ID: 524208D8CD36D7B1
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ private[sbt] trait LanguageServerProtocol extends CommandChannel {
else throw LangServerError(ErrorCodes.InvalidRequest, "invalid token")
} else ()
setInitialized(true)
append(Exec(s"collectAnalyses", Some(request.id), Some(CommandSource(name))))
append(Exec(s"collectAnalyses", None, Some(CommandSource(name))))
langRespond(InitializeResult(serverCapabilities), Option(request.id))
case "textDocument/definition" =>
import scala.concurrent.ExecutionContext.Implicits.global