An implementation of the language server protocol for Moonshine IDE.

See also:

Constructor

new(languageId:String, input:IDataInput, inputDispatcher:IEventDispatcher, inputEventType:String, output:IDataOutput, ?outputFlushCallback:() ‑> Void)

Creates a new LanguageClient object.

Variables

@:value(false)debugMode:Bool = false

Indicates if debug messages should be logged to the debug console.

@:flash.propertyread onlyinitialized:Bool

Indicates if the language client is fully initialized. Some messages cannot be sent until initialization is complete.

@:flash.propertyread onlyinitializing:Bool

Indicates if the language client is currently initializing.

@:flash.propertyread onlylanguageId:String

The language identifier.

@:flash.propertyread onlyserverCapabilities:ServerCapabilities

Returns the capabilities of the language server.

@:flash.propertyread onlystopped:Bool

Indicates if the language client is stopped.

@:flash.propertyread onlystopping:Bool

Indicates if the language client is currently stopping.

Methods

addNotificationListener(method:String, listener:NotificationMessage ‑> Void):Void

Adds a listener for a notification type received from the language server.

addWorkspaceFolder(workspaceFolder:WorkspaceFolder):Void

Sends a request to add a workspace folder.

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.

didChange(params:DidChangeTextDocumentParams):Void

Sends a didChange request.

didChangeWatchedFiles(params:DidChangeWatchedFilesParams):Void

Sends a didChangeWatchedFiles notification.

didClose(params:DidCloseTextDocumentParams):Void

Sends a didClose request.

didOpen(params:DidOpenTextDocumentParams):Void

Sends a didOpen request.

didSave(params:DidSaveTextDocumentParams):Void

Sends a didSave request.

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.

hover(params:HoverParams, callback:Null<Hover> ‑> Void):Void

Sends a hover request.

implementation(params:ImplementationParams, callback:Null<Array<Any>> ‑> Void):Void

Sends an implementation request.

initialize(params:InitializeParams):Void

Sends an initialize request.

references(params:ReferenceParams, callback:Null<Array<Location>> ‑> Void):Void

Sends a refereces request.

registerCommand(command:String, listener:Any):Void

Registers a command.

registerUriScheme(uriScheme:String):Void

Registers an URI scheme.

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.

rename(params:RenameParams, callback:Null<WorkspaceEdit> ‑> Void):Void

Sends a rename request.

resolveCompletion(item:CompletionItem, callback:CompletionItem ‑> Void):Void

Sends a resolveCompletion request.

sendNotification(method:String, params:Any):Void

Sends a notification to the language server.

shutdown():Void

Sends a shutdown 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.

unregisterCommand(command:String):Void

Unregisters a command.

willSave(params:WillSaveTextDocumentParams):Void

Sends a willSave request.

workspaceSymbols(params:WorkspaceSymbolParams, callback:Null<Array<SymbolInformation>> ‑> Void):Void

Sends a workspaceSymbols request.