LspClientWorkspace
LspClientWorkspace =
object
Properties
Section titled “Properties”documents
Section titled “documents”
readonlydocuments: readonlyLspDocument[]
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”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