Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- **Default configuration** — Include all 6 predefined LSP servers in `ServerConfig::default()` instead of just rust-analyzer. Servers included: rust-analyzer, pyright, typescript, gopls, clangd, zls. Heuristics ensure servers only spawn when project markers exist.
- **BREAKING: `LspServerConfig::should_spawn` signature** — Method now accepts `max_depth: Option<usize>` parameter for recursive search depth control.

## [0.3.2] - 2026-02-03

Expand Down
6 changes: 5 additions & 1 deletion crates/mcpls-core/src/config/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ const EXCLUDED_DIRECTORIES: &[&str] = &[
#[serde(deny_unknown_fields)]
pub struct ServerHeuristics {
/// Files or directories that indicate this server is applicable.
/// The server will spawn if ANY of these markers exist in the workspace root.
///
/// The server will spawn if ANY of these markers exist anywhere in the workspace tree
/// (searched recursively up to `heuristics_max_depth`). Well-known directories like
/// `node_modules`, `target`, `.git` are excluded from the search.
///
/// If empty, the server will always attempt to spawn.
#[serde(default)]
pub project_markers: Vec<String>,
Expand Down