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
Properties
SystemCommands
Gets a collection of available system commands
protected override IEnumerable<string> SystemCommands { get; }
Property Value
Methods
CodeLensesForDocument(Parser, IEnumerable<CodeLens>)
Calculates the code lenses for the given document
protected override IEnumerable<CodeLens> CodeLensesForDocument(Parser document, IEnumerable<CodeLens> codeLenses)
Parameters
documentParserthe document for which to calculate code lenses
codeLensesIEnumerable<CodeLens>the code lenses obtained from the document
Returns
- IEnumerable<CodeLens>
A collection of code lenses
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
OnDocumentUpdate(Parser, IEnumerable<TextEdit>, string)
Gets called when a document should be updated
protected override void OnDocumentUpdate(Parser document, IEnumerable<TextEdit> edits, string uri)
Parameters
documentParserthe parsed document
editsIEnumerable<TextEdit>the edits that should be performed
uristringthe URI of the document
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