Class SynchronizingLspServer
Denotes an LSP server that performs document synchronization
public class SynchronizingLspServer : LspServer, ILspServer
- Inheritance
-
SynchronizingLspServer
- Implements
- Inherited Members
Constructors
SynchronizingLspServer(IEnumerable<Grammar>, IModelServer, params IModelSynchronization[])
Creates a new instance
public SynchronizingLspServer(IEnumerable<Grammar> grammars, IModelServer modelServer, params IModelSynchronization[] synchronizations)
Parameters
grammarsIEnumerable<Grammar>the grammars supported by this LSP server
modelServerIModelServera local model server
synchronizationsIModelSynchronization[]a collection of model synchronizations
SynchronizingLspServer(IEnumerable<Grammar>, IModelServer, IEnumerable<IModelSynchronization>)
Creates a new instance
public SynchronizingLspServer(IEnumerable<Grammar> grammars, IModelServer modelServer, IEnumerable<IModelSynchronization> synchronizations)
Parameters
grammarsIEnumerable<Grammar>the grammars supported by this LSP server
modelServerIModelServera local model server
synchronizationsIEnumerable<IModelSynchronization>a collection of model synchronizations
Methods
HandleExtensionCommand(string, object[])
Allows derived classes to handle an extension command
protected override bool HandleExtensionCommand(string commandIdentifier, object[] args)
Parameters
Returns
- bool
true, if the command was handled, otherwise false
OpenNewDocument(Parser)
Gets called when a new document is opened
protected override void OpenNewDocument(Parser parser)
Parameters
parserParserthe opened document
PostProcessCompletions(Parser, IEnumerable<CompletionItem>)
Performs a post-processing on the given completion collection
protected override IEnumerable<CompletionItem> PostProcessCompletions(Parser document, IEnumerable<CompletionItem> completions)
Parameters
documentParserthe document for which the completion list is requested
completionsIEnumerable<CompletionItem>the current list of completions
Returns
- IEnumerable<CompletionItem>
a potentially modified list of completions