LSP (Language Server Protocol)
Configuring Language Servers in TIDE
Language Server Protocol (LSP)
One of TIDE's most powerful features is its full support for the Language Server Protocol (LSP). TIDE supports over 346+ LSP extensions, giving you desktop-grade coding features directly on your phone.
LSP Features
When a language server is active, you get:
- Smart Autocomplete: Context-aware suggestions as you type.
- Real-time Diagnostics: Errors and warnings underlined in real-time (linting).
- Go-to Definition: Jump directly to where a variable or function is defined.
- Hover Documentation: View function signatures and docstrings.
The LSP Manager
You can manage your active language servers by opening the Extensions & LSP Manager screen from the app settings.
Enabling & Disabling Servers
In the LSP Manager, you will see a list of all installed extensions. You can toggle them On or Off. If an extension is disabled, its text color will dim, and it will no longer consume battery or memory in the background.
Viewing Logs
If you want to debug a language server, you can view the live connection and server logs directly within the LSP Manager. Tap the log icon next to an active server to see exactly what JSON-RPC messages are being exchanged.
Advanced Logging
If you are developing a project and experiencing issues with autocomplete (or if you just want to see how the LSP communicates), you can enable Advanced Logging at the top of the LSP Manager.
- When Enabled: The app generates verbose server logs detailing the exact JSON-RPC messages sent between the editor and the language server.
- Note: It is highly recommended to disable this option when you don't need it to save battery and reduce disk I/O operations.