| 577 | * server. It is wired during the initialize sequence. |
| 578 | */ |
| 579 | export interface StaticFeature { |
| 580 | /** |
| 581 | * Called to fill the initialize params. |
| 582 | * |
| 583 | * @params the initialize params. |
| 584 | */ |
| 585 | fillInitializeParams?: (params: InitializeParams) => void; |
| 586 | |
| 587 | /** |
| 588 | * Called to fill in the client capabilities this feature implements. |
| 589 | * |
| 590 | * @param capabilities The client capabilities to fill. |
| 591 | */ |
| 592 | fillClientCapabilities(capabilities: ClientCapabilities): void; |
| 593 | |
| 594 | /** |
| 595 | * Initialize the feature. This method is called on a feature instance |
| 596 | * when the client has successfully received the initalize request from |
| 597 | * the server and before the client sends the initialized notification |
| 598 | * to the server. |
| 599 | * |
| 600 | * @param capabilities the server capabilities |
| 601 | * @param documentSelector the document selector pass to the client's constuctor. |
| 602 | * May be `undefined` if the client was created without a selector. |
| 603 | */ |
| 604 | initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector | undefined): void; |
| 605 | } |
| 606 | |
| 607 | export interface DynamicFeature<T> { |
| 608 |
no outgoing calls
no test coverage detected