-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathIdeLanguageClient.scala
More file actions
47 lines (32 loc) · 1.64 KB
/
IdeLanguageClient.scala
File metadata and controls
47 lines (32 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2011-2020 ETH Zurich.
package viper.server.frontends.lsp
import java.util.concurrent.CompletableFuture
import org.eclipse.lsp4j.{Position, Range}
import org.eclipse.lsp4j.jsonrpc.services._
import org.eclipse.lsp4j.services.LanguageClient
trait IdeLanguageClient extends LanguageClient {
@JsonRequest(C2S_Commands.GetIdentifier)
def requestIdentifier(pos: Position): CompletableFuture[GetIdentifierResponse]
@JsonRequest(C2S_Commands.GetRange)
def requestRange(pos: Range): CompletableFuture[GetRangeResponse]
@JsonRequest(C2S_Commands.GetViperFileEndings)
def requestVprFileEndings(): CompletableFuture[GetViperFileEndingsResponse]
@JsonRequest(C2S_Commands.SetupProject)
def requestSetupProject(param: SetupProjectParams): CompletableFuture[Unit]
@JsonNotification(S2C_Commands.Log)
def notifyLog(param: LogParams): Unit
@JsonNotification(S2C_Commands.Hint)
def notifyHint(param: HintMessage): Unit
@JsonNotification(S2C_Commands.UnhandledViperServerMessageType)
def notifyUnhandledViperServerMessage(params: UnhandledViperServerMessageTypeParams): Unit
@JsonNotification(S2C_Commands.VerificationNotStarted)
def notifyVerificationNotStarted(params: VerificationNotStartedParams): Unit
@JsonNotification(S2C_Commands.StateChange)
def notifyStateChanged(params: StateChangeParams): Unit
@JsonNotification(S2C_Commands.BranchFailureDetails)
def sendBranchFailureInfo(params: BranchFailureDetails): Unit
}