Skip to content

LanguageServerDocumentSyncOptions

LanguageServerDocumentSyncOptions = object

readonly optional controller?: LanguageServerDocumentSyncController

Projects a live path transition before deferred view publication catches up.

optional languageIdForDocument(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.

string

string

string | undefined


optional shouldSyncLanguageId(languageId, snapshot): boolean

string

LanguageServerDocumentSnapshot

boolean


optional shouldSyncUri(uri, snapshot): boolean

string

LanguageServerDocumentSnapshot

boolean


optional uriForDocument(snapshot): string | null

Resolves opaque editor identities to protocol URIs. Returning null disables synchronization.

LanguageServerDocumentSnapshot

string | null