An implementation of the language server protocol for Moonshine IDE.
See also:
https://microsoft.github.io/language-server-protocol/specification Language Server Protocol Specification
Constructor
new(languageId:String, input:IDataInput, inputDispatcher:IEventDispatcher, inputEventType:String, output:IDataOutput, ?outputFlushCallback:() ‑> Void)
Creates a new LanguageClient
object.
Variables
read onlyinitialized:Bool
Indicates if the language client is fully initialized. Some messages cannot be sent until initialization is complete.
Methods
addNotificationListener(method:String, listener:NotificationMessage ‑> Void):Void
Adds a listener for a notification type received from the language server.
codeAction(params:CodeActionParams, callback:Null<Array<CodeAction>> ‑> Void):Void
Sends a codeAction request.
completion(params:CompletionParams, callback:Null<CompletionList> ‑> Void):Void
Sends a completion request.
definition(params:DefinitionParams, callback:Null<Array<Any>> ‑> Void):Void
Sends a definition request.
didChangeWatchedFiles(params:DidChangeWatchedFilesParams):Void
Sends a didChangeWatchedFiles notification.
documentSymbols(params:DocumentSymbolParams, callback:Null<Array<Any>> ‑> Void):Void
Sends a documentSymbols request.
executeCommand(params:ExecuteCommandParams, callback:Null<Any> ‑> Void):Void
Sends an executeCommand request.
implementation(params:ImplementationParams, callback:Null<Array<Any>> ‑> Void):Void
Sends an implementation request.
references(params:ReferenceParams, callback:Null<Array<Location>> ‑> Void):Void
Sends a refereces request.
removeNotificationListener(method:String, listener:NotificationMessage ‑> Void):Void
Removes a listener for a notification type received from the language server.
removeWorkspaceFolder(workspaceFolder:WorkspaceFolder):Void
Sends a request to remove a workspace folder.
resolveCompletion(item:CompletionItem, callback:CompletionItem ‑> Void):Void
Sends a resolveCompletion request.
signatureHelp(params:SignatureHelpParams, callback:Null<SignatureHelp> ‑> Void):Void
Sends a signatureHelp request.
typeDefinition(params:TypeDefinitionParams, callback:Null<Array<Any>> ‑> Void):Void
Sends a typeDefinition request.
workspaceSymbols(params:WorkspaceSymbolParams, callback:Null<Array<SymbolInformation>> ‑> Void):Void
Sends a workspaceSymbols request.