Skip to content

rune-langium / lsp-server/src / RuneDocumentUpdateHandler

Class: RuneDocumentUpdateHandler ​

Defined in: packages/lsp-server/src/document-update-handler.ts:24

Extends ​

  • DefaultDocumentUpdateHandler

Constructors ​

Constructor ​

ts
new RuneDocumentUpdateHandler(services): RuneDocumentUpdateHandler;

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:68

Parameters ​

ParameterType
servicesLangiumSharedServices

Returns ​

RuneDocumentUpdateHandler

Inherited from ​

DefaultDocumentUpdateHandler.constructor

Properties ​

PropertyModifierTypeInherited fromDefined in
documentBuilderprotected readonlyDocumentBuilderDefaultDocumentUpdateHandler.documentBuildernode_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:64
onWatchedFilesChangeEmitterprotected readonlyEmitter<DidChangeWatchedFilesParams>DefaultDocumentUpdateHandler.onWatchedFilesChangeEmitternode_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:67
serviceRegistryprotected readonlyServiceRegistryDefaultDocumentUpdateHandler.serviceRegistrynode_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:66
workspaceLockprotected readonlyWorkspaceLockDefaultDocumentUpdateHandler.workspaceLocknode_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:65
workspaceManagerprotected readonlyWorkspaceManagerDefaultDocumentUpdateHandler.workspaceManagernode_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:63

Accessors ​

onWatchedFilesChange ​

Get Signature ​

ts
get onWatchedFilesChange(): Event<DidChangeWatchedFilesParams>;

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:74

Register a listener for raw file system changes. Which changes are actually reported depends on the file system watcher configuration.

Returns ​

Event<DidChangeWatchedFilesParams>

Inherited from ​

DefaultDocumentUpdateHandler.onWatchedFilesChange

Methods ​

didChangeContent() ​

ts
didChangeContent(change): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:72

A content change event was triggered by the TextDocuments service.

Parameters ​

ParameterType
changeTextDocumentChangeEvent<TextDocument>

Returns ​

void

Inherited from ​

DefaultDocumentUpdateHandler.didChangeContent


didChangeWatchedFiles() ​

ts
didChangeWatchedFiles(params): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:73

The client detected changes to files and folders watched by the language client.

Parameters ​

ParameterTypeDescription
paramsDidChangeWatchedFilesParamsThe files/folders change event.

Returns ​

void

Inherited from ​

DefaultDocumentUpdateHandler.didChangeWatchedFiles


didCloseDocument() ​

ts
didCloseDocument(event): void;

Defined in: packages/lsp-server/src/document-update-handler.ts:29

Parameters ​

ParameterType
eventTextDocumentChangeEvent<TextDocument>

Returns ​

void


fireDocumentUpdate() ​

ts
protected fireDocumentUpdate(changed, deleted): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:71

Parameters ​

ParameterType
changedURI[]
deletedURI[]

Returns ​

void

Inherited from ​

DefaultDocumentUpdateHandler.fireDocumentUpdate


getWatchers() ​

ts
protected getWatchers(): FileSystemWatcher[];

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:70

Returns ​

FileSystemWatcher[]

Inherited from ​

DefaultDocumentUpdateHandler.getWatchers


registerFileWatcher() ​

ts
protected registerFileWatcher(services): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:69

Parameters ​

ParameterType
servicesLangiumSharedServices

Returns ​

void

Inherited from ​

DefaultDocumentUpdateHandler.registerFileWatcher

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.