rune-langium / lsp-server/src / RuneDocumentUpdateHandler
Class: RuneDocumentUpdateHandler
Defined in: packages/lsp-server/src/document-update-handler.ts:24
Extends
DefaultDocumentUpdateHandler
Constructors
Constructor
new RuneDocumentUpdateHandler(services): RuneDocumentUpdateHandler;Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:68
Parameters
| Parameter | Type |
|---|---|
services | LangiumSharedServices |
Returns
RuneDocumentUpdateHandler
Inherited from
DefaultDocumentUpdateHandler.constructor
Properties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
documentBuilder | protected readonly | DocumentBuilder | DefaultDocumentUpdateHandler.documentBuilder | node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:64 |
onWatchedFilesChangeEmitter | protected readonly | Emitter<DidChangeWatchedFilesParams> | DefaultDocumentUpdateHandler.onWatchedFilesChangeEmitter | node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:67 |
serviceRegistry | protected readonly | ServiceRegistry | DefaultDocumentUpdateHandler.serviceRegistry | node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:66 |
workspaceLock | protected readonly | WorkspaceLock | DefaultDocumentUpdateHandler.workspaceLock | node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:65 |
workspaceManager | protected readonly | WorkspaceManager | DefaultDocumentUpdateHandler.workspaceManager | node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:63 |
Accessors
onWatchedFilesChange
Get Signature
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()
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
| Parameter | Type |
|---|---|
change | TextDocumentChangeEvent<TextDocument> |
Returns
void
Inherited from
DefaultDocumentUpdateHandler.didChangeContent
didChangeWatchedFiles()
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
| Parameter | Type | Description |
|---|---|---|
params | DidChangeWatchedFilesParams | The files/folders change event. |
Returns
void
Inherited from
DefaultDocumentUpdateHandler.didChangeWatchedFiles
didCloseDocument()
didCloseDocument(event): void;Defined in: packages/lsp-server/src/document-update-handler.ts:29
Parameters
| Parameter | Type |
|---|---|
event | TextDocumentChangeEvent<TextDocument> |
Returns
void
fireDocumentUpdate()
protected fireDocumentUpdate(changed, deleted): void;Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:71
Parameters
| Parameter | Type |
|---|---|
changed | URI[] |
deleted | URI[] |
Returns
void
Inherited from
DefaultDocumentUpdateHandler.fireDocumentUpdate
getWatchers()
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()
protected registerFileWatcher(services): void;Defined in: node_modules/.pnpm/[email protected]/node_modules/langium/lib/lsp/document-update-handler.d.ts:69
Parameters
| Parameter | Type |
|---|---|
services | LangiumSharedServices |
Returns
void
Inherited from
DefaultDocumentUpdateHandler.registerFileWatcher