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

Class RemoteWindowImpl

server/src/main.ts:671–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671class RemoteWindowImpl implements RemoteWindow {
672
673 private _connection: IConnection;
674
675 constructor() {
676 }
677
678 public attach(connection: IConnection) {
679 this._connection = connection;
680 }
681
682 public get connection(): IConnection {
683 if (!this._connection) {
684 throw new Error('Remote is not attached to a connection yet.');
685 }
686 return this._connection;
687 }
688
689 public initialize(_capabilities: ClientCapabilities): void {
690 }
691
692 public fillServerCapabilities(_capabilities: ServerCapabilities): void {
693 }
694
695 public showErrorMessage(message: string, ...actions: MessageActionItem[]): Thenable<MessageActionItem | undefined> {
696 let params: ShowMessageRequestParams = { type: MessageType.Error, message, actions };
697 return this._connection.sendRequest(ShowMessageRequest.type, params).then(null2Undefined);
698 }
699
700 public showWarningMessage(message: string, ...actions: MessageActionItem[]): Thenable<MessageActionItem | undefined> {
701 let params: ShowMessageRequestParams = { type: MessageType.Warning, message, actions };
702 return this._connection.sendRequest(ShowMessageRequest.type, params).then(null2Undefined);
703 }
704
705 public showInformationMessage(message: string, ...actions: MessageActionItem[]): Thenable<MessageActionItem | undefined> {
706 let params: ShowMessageRequestParams = { type: MessageType.Info, message, actions };
707 return this._connection.sendRequest(ShowMessageRequest.type, params).then(null2Undefined);
708 }
709}
710
711class RemoteClientImpl implements RemoteClient {
712

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected