Readonly
onAn event that fires when a text document managed by this manager has been opened or the content changes.
Readonly
onAn event that fires when a text document managed by this manager has been closed.
Readonly
onAn event that fires when a text document managed by this manager has been opened.
Readonly
onAn event that fires when a text document managed by this manager has been saved.
Readonly
onAn event that fires when a text document managed by this manager will be saved.
Listens for low level
notification on the given connection to
update the text documents managed by this instance.
Please note that the connection only provides handlers not an event model. Therefore
listening on a connection will overwrite the following handlers on a connection:
onDidOpenTextDocument
, onDidChangeTextDocument
, onDidCloseTextDocument
,
onWillSaveTextDocument
, onWillSaveTextDocumentWaitUntil
and onDidSaveTextDocument
.
Use the corresponding events on the TextDocuments instance instead.
The connection to listen on.
Sets a handler that will be called if a participant wants to provide edits during a text document save.
Sets the text document managed by this instance.
The text document to add.
true
if the document didn't exist yet, false
if it was already present.
A manager service that keeps track of all currently opened text documents.
Designed to be compatible with the
TextDocuments
class in thevscode-languageserver
package.