LspWorkspace
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LspWorkspace():
LspWorkspace
Returns
Section titled “Returns”LspWorkspace
Accessors
Section titled “Accessors”documents
Section titled “documents”Get Signature
Section titled “Get Signature”get documents(): readonly
LspDocument[]
Returns
Section titled “Returns”readonly LspDocument[]
Methods
Section titled “Methods”adoptUnchangedDocumentSource()
Section titled “adoptUnchangedDocumentSource()”adoptUnchangedDocumentSource(
uri,options):LspDocument
Parameters
Section titled “Parameters”string
options
Section titled “options”LspWorkspaceUnchangedSourceOptions
Returns
Section titled “Returns”attachClient()
Section titled “attachClient()”attachClient(
client):void
Parameters
Section titled “Parameters”client
Section titled “client”Returns
Section titled “Returns”void
closeDocument()
Section titled “closeDocument()”closeDocument(
attachment):void
Parameters
Section titled “Parameters”attachment
Section titled “attachment”LspWorkspaceDocumentAttachment
Returns
Section titled “Returns”void
connected()
Section titled “connected()”connected():
void
Returns
Section titled “Returns”void
disconnected()
Section titled “disconnected()”disconnected():
void
Returns
Section titled “Returns”void
getDocument()
Section titled “getDocument()”getDocument(
uri):LspDocument|null
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”LspDocument | null
openDocumentSnapshot()
Section titled “openDocumentSnapshot()”openDocumentSnapshot(
options):LspDocumentOpenSnapshotResult
Parameters
Section titled “Parameters”options
Section titled “options”LspDocumentOpenSnapshotOptions
Returns
Section titled “Returns”prepareDocumentRequest()
Section titled “prepareDocumentRequest()”prepareDocumentRequest(
uri,signal?):LspDocumentSourcePreparation
Parameters
Section titled “Parameters”string
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”registerDocumentSource()
Section titled “registerDocumentSource()”registerDocumentSource(
registration): () =>void
Parameters
Section titled “Parameters”registration
Section titled “registration”DocumentSourceRegistration
Returns
Section titled “Returns”() => void
saveDocument()
Section titled “saveDocument()”saveDocument(
uri):Promise<void>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
transitionDocumentUri()
Section titled “transitionDocumentUri()”transitionDocumentUri(
attachment,options):LspDocumentTransitionResult
Parameters
Section titled “Parameters”attachment
Section titled “attachment”LspWorkspaceDocumentAttachment
options
Section titled “options”Returns
Section titled “Returns”updateDocumentSnapshot()
Section titled “updateDocumentSnapshot()”updateDocumentSnapshot(
uri,options):LspDocument
Parameters
Section titled “Parameters”string
options
Section titled “options”LspWorkspaceSnapshotEditOptions