LanguageServerDocumentSyncOptions
LanguageServerDocumentSyncOptions =
object
Properties
Section titled “Properties”controller?
Section titled “controller?”
readonlyoptionalcontroller?:LanguageServerDocumentSyncController
Projects a live path transition before deferred view publication catches up.
Methods
Section titled “Methods”languageIdForDocument()?
Section titled “languageIdForDocument()?”
optionallanguageIdForDocument(languageId,uri):string|undefined
The language id sent to the server when the editor and protocol use different names. Returning undefined keeps the editor’s id.
Parameters
Section titled “Parameters”languageId
Section titled “languageId”string
string
Returns
Section titled “Returns”string | undefined
shouldSyncLanguageId()?
Section titled “shouldSyncLanguageId()?”
optionalshouldSyncLanguageId(languageId,snapshot):boolean
Parameters
Section titled “Parameters”languageId
Section titled “languageId”string
snapshot
Section titled “snapshot”LanguageServerDocumentSnapshot
Returns
Section titled “Returns”boolean
shouldSyncUri()?
Section titled “shouldSyncUri()?”
optionalshouldSyncUri(uri,snapshot):boolean
Parameters
Section titled “Parameters”string
snapshot
Section titled “snapshot”LanguageServerDocumentSnapshot
Returns
Section titled “Returns”boolean
uriForDocument()?
Section titled “uriForDocument()?”
optionaluriForDocument(snapshot):string|null
Resolves opaque editor identities to protocol URIs. Returning null disables synchronization.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”LanguageServerDocumentSnapshot
Returns
Section titled “Returns”string | null