Skip to content

Commit ac99843

Browse files
committed
feat: add data driven plugin profiles
1 parent 628b4f1 commit ac99843

4 files changed

Lines changed: 339 additions & 32 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ extensions = ["foo"]
199199
function_prefixes = ["function "]
200200
import_prefixes = ["load "]
201201
call_suffixes = ["("]
202+
package_index_files = ["index.foo"]
203+
test_path_patterns = ["tests/*", "*_test.foo"]
204+
source_roots = ["src"]
205+
ignored_paths = ["build/*"]
206+
local_import_prefixes = ["."]
202207

203208
[rules]
204209
max_cycles = 0

crates/raysense-cli/src/mcp.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,12 @@ fn config_schema() -> Value {
12931293
"extensions": {"type": "array", "items": {"type": "string"}},
12941294
"function_prefixes": {"type": "array", "items": {"type": "string"}},
12951295
"import_prefixes": {"type": "array", "items": {"type": "string"}},
1296-
"call_suffixes": {"type": "array", "items": {"type": "string"}}
1296+
"call_suffixes": {"type": "array", "items": {"type": "string"}},
1297+
"package_index_files": {"type": "array", "items": {"type": "string"}},
1298+
"test_path_patterns": {"type": "array", "items": {"type": "string"}},
1299+
"source_roots": {"type": "array", "items": {"type": "string"}},
1300+
"ignored_paths": {"type": "array", "items": {"type": "string"}},
1301+
"local_import_prefixes": {"type": "array", "items": {"type": "string"}}
12971302
},
12981303
"required": ["name", "extensions"]
12991304
}

crates/raysense-core/src/health.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ pub struct LanguagePluginConfig {
9595
pub function_prefixes: Vec<String>,
9696
pub import_prefixes: Vec<String>,
9797
pub call_suffixes: Vec<String>,
98+
pub package_index_files: Vec<String>,
99+
pub test_path_patterns: Vec<String>,
100+
pub source_roots: Vec<String>,
101+
pub ignored_paths: Vec<String>,
102+
pub local_import_prefixes: Vec<String>,
98103
}
99104

100105
impl Default for LanguagePluginConfig {
@@ -113,6 +118,11 @@ impl Default for LanguagePluginConfig {
113118
"require ".to_string(),
114119
],
115120
call_suffixes: vec!["(".to_string()],
121+
package_index_files: Vec::new(),
122+
test_path_patterns: Vec::new(),
123+
source_roots: Vec::new(),
124+
ignored_paths: Vec::new(),
125+
local_import_prefixes: vec![".".to_string()],
116126
}
117127
}
118128
}

0 commit comments

Comments
 (0)