MCPcopy Index your code
hub / github.com/microsoft/vscode-languageserver-node / RemoteClient

Interface RemoteClient

server/src/main.ts:573–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571 * Interface to register and unregister `listeners` on the client / tools side.
572 */
573export interface RemoteClient extends Remote {
574 /**
575 * Registers a listener for the given notification.
576 * @param type the notification type to register for.
577 * @param registerParams special registration parameters.
578 * @return a `Disposable` to unregister the listener again.
579 */
580 register<RO>(type: NotificationType0<RO>, registerParams?: RO): Thenable<Disposable>;
581 register<P, RO>(type: NotificationType<P, RO>, registerParams?: RO): Thenable<Disposable>;
582
583 /**
584 * Registers a listener for the given notification.
585 * @param unregisteration the unregistration to add a corresponding unregister action to.
586 * @param type the notification type to register for.
587 * @param registerParams special registration parameters.
588 * @return the updated unregistration.
589 */
590 register<RO>(unregisteration: BulkUnregistration, type: NotificationType0<RO>, registerParams?: RO): Thenable<BulkUnregistration>;
591 register<P, RO>(unregisteration: BulkUnregistration, type: NotificationType<P, RO>, registerParams?: RO): Thenable<BulkUnregistration>;
592
593 /**
594 * Registers a listener for the given request.
595 * @param type the request type to register for.
596 * @param registerParams special registration parameters.
597 * @return a `Disposable` to unregister the listener again.
598 */
599 register<R, E, RO>(type: RequestType0<R, E, RO>, registerParams?: RO): Thenable<Disposable>;
600 register<P, R, E, RO>(type: RequestType<P, R, E, RO>, registerParams?: RO): Thenable<Disposable>;
601
602 /**
603 * Registers a listener for the given request.
604 * @param unregisteration the unregistration to add a corresponding unregister action to.
605 * @param type the request type to register for.
606 * @param registerParams special registration parameters.
607 * @return the updated unregistration.
608 */
609 register<R, E, RO>(unregisteration: BulkUnregistration, type: RequestType0<R, E, RO>, registerParams?: RO): Thenable<BulkUnregistration>;
610 register<P, R, E, RO>(unregisteration: BulkUnregistration, type: RequestType<P, R, E, RO>, registerParams?: RO): Thenable<BulkUnregistration>;
611 /**
612 * Registers a set of listeners.
613 * @param registrations the bulk registration
614 * @return a `Disposable` to unregister the listeners again.
615 */
616 register(registrations: BulkRegistration): Thenable<BulkUnregistration>;
617}
618
619class ConnectionLogger implements Logger, RemoteConsole {
620

Callers 1

Implementers 9

RemoteClientImplserver/src/main.ts
DidOpenTextDocumentFeatureclient/src/client.ts
DidChangeTextDocumentFeatureclient/src/client.ts
WillSaveWaitUntilFeatureclient/src/client.ts
DidSaveTextDocumentFeatureclient/src/client.ts
FileSystemWatcherFeatureclient/src/client.ts
ConfigurationFeatureclient/src/client.ts
ExecuteCommandFeatureclient/src/client.ts
WorkspaceFoldersFeatureclient/src/workspaceFolders.ts

Calls

no outgoing calls

Tested by

no test coverage detected