Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/mcpls-core/src/lsp/lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ impl LspServer {
..Default::default()
}),
text_document: Some(lsp_types::TextDocumentClientCapabilities {
document_symbol: Some(lsp_types::DocumentSymbolClientCapabilities {
dynamic_registration: Some(false),
hierarchical_document_symbol_support: Some(true),
..Default::default()
}),
Comment on lines 293 to +298
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change adds document_symbol to the client capabilities, but there’s no test asserting that the initialize request includes this capability. Since this module already has unit tests, consider adding a small unit test (or factoring out capability construction) to prevent regressions where document_symbol support is accidentally dropped again.

Copilot uses AI. Check for mistakes.
hover: Some(lsp_types::HoverClientCapabilities {
dynamic_registration: Some(false),
content_format: Some(vec![
Expand Down
Loading