mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
fix default for the exlude key
This commit is contained in:
parent
8521f0456f
commit
6ab85cc192
3 changed files with 7 additions and 3 deletions
|
@ -48,9 +48,12 @@ fn main_inner() -> Result<()> {
|
||||||
|
|
||||||
let opts = params
|
let opts = params
|
||||||
.initialization_options
|
.initialization_options
|
||||||
.and_then(|v| ServerConfig::deserialize(v).ok())
|
.and_then(|v| {
|
||||||
|
ServerConfig::deserialize(v)
|
||||||
|
.map_err(|e| log::error!("failed to deserialize config: {}", e))
|
||||||
|
.ok()
|
||||||
|
})
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
ra_lsp_server::main_loop(workspace_roots, params.capabilities, opts, r, s)
|
ra_lsp_server::main_loop(workspace_roots, params.capabilities, opts, r, s)
|
||||||
})?;
|
})?;
|
||||||
log::info!("shutting down IO...");
|
log::info!("shutting down IO...");
|
||||||
|
|
|
@ -586,6 +586,7 @@ fn update_file_notifications_on_threadpool(
|
||||||
sender: Sender<Task>,
|
sender: Sender<Task>,
|
||||||
subscriptions: Vec<FileId>,
|
subscriptions: Vec<FileId>,
|
||||||
) {
|
) {
|
||||||
|
log::trace!("updating notifications for {:?}", subscriptions);
|
||||||
pool.execute(move || {
|
pool.execute(move || {
|
||||||
for file_id in subscriptions {
|
for file_id in subscriptions {
|
||||||
match handlers::publish_diagnostics(&world, file_id) {
|
match handlers::publish_diagnostics(&world, file_id) {
|
||||||
|
|
|
@ -199,7 +199,7 @@
|
||||||
},
|
},
|
||||||
"rust-analyzer.excludeGlobs": {
|
"rust-analyzer.excludeGlobs": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": "[]",
|
"default": [],
|
||||||
"description": "Paths to exclude from analysis"
|
"description": "Paths to exclude from analysis"
|
||||||
},
|
},
|
||||||
"rust-analyzer.cargo-watch.arguments": {
|
"rust-analyzer.cargo-watch.arguments": {
|
||||||
|
|
Loading…
Reference in a new issue