Understand LSP message types and API locations in tower-lsp
masterWhen implementing or using LSP features in tower-lsp, messages are categorized by their direction and type. This determines whether you implement them in the LanguageServer trait or use the Client struct:
- Request (Client to Server): Implemented via the
LanguageServertrait. - Notification (Client to Server): Implemented via the
LanguageServertrait. - Request (Server to Client): Handled using the
Clientstruct. - Notification (Server to Client): Handled using the
Clientstruct.