(_message: RPCMessageType, data: RegistrationData<TextDocumentRegistrationOptions>)
| 699 | public abstract initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector | undefined): void; |
| 700 | |
| 701 | public register(_message: RPCMessageType, data: RegistrationData<TextDocumentRegistrationOptions>): void { |
| 702 | |
| 703 | if (!data.registerOptions.documentSelector) { |
| 704 | return; |
| 705 | } |
| 706 | if (!this._listener) { |
| 707 | this._listener = this._event(this.callback, this); |
| 708 | } |
| 709 | this._selectors.set(data.id, data.registerOptions.documentSelector); |
| 710 | } |
| 711 | |
| 712 | private callback(data: E): void { |
| 713 | if (!this._selectorFilter || this._selectorFilter(this._selectors.values(), data)) { |
nothing calls this directly
no test coverage detected