Table of Contents

Class TextSynchronization

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Synchronizations.dll

Represents a running text synchronization

public class TextSynchronization : IDisposable
Inheritance
TextSynchronization
Implements
Inherited Members

Constructors

TextSynchronization(IModelElement, Parser, ILspServer)

Creates a new text synchronization

public TextSynchronization(IModelElement rootElement, Parser document, ILspServer server)

Parameters

rootElement IModelElement

the root element that should be watched

document Parser

the document behind it

server ILspServer

the LSP server implementation

Properties

RunningSynchronizations

Gets a collection of running synchronizations for this text document

public List<IRunningSynchronization> RunningSynchronizations { get; }

Property Value

List<IRunningSynchronization>

Methods

Complete()

Completes the current edits

public void Complete()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

StartListening()

Starts listening to model changes

public void StartListening()