You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a4d71da
Browse filesBrowse the repository at this point in the historyBrowse files
message:"Language server indexing exclusions could not be published for server {server}",
666
+
fields:&[
667
+
FieldMetadata{name:"error",field_type:FieldType::Error,required:true,description:"Failure resolving or publishing the workspace Git exclusions after the server started",reason:None},
668
+
FieldMetadata{name:"server",field_type:FieldType::Id,required:true,description:"Validated language server session id whose workspace exclusions could not be published",reason:None},
message:"Engine indexing exclusions could not be published for server {plugin}",
947
+
fields:&[
948
+
FieldMetadata{name:"error",field_type:FieldType::Error,required:true,description:"Failure resolving or publishing the workspace Git exclusions after the server started",reason:None},
949
+
FieldMetadata{name:"plugin",field_type:FieldType::Id,required:true,description:"Validated plugin identity assigned by Core to this engine session",reason:None},
message:"Engine indexing exclusions could not be published for server {provider}",
1599
+
fields:&[
1600
+
FieldMetadata{name:"error",field_type:FieldType::Error,required:true,description:"Failure resolving or publishing the workspace Git exclusions after the server started",reason:None},
1601
+
FieldMetadata{name:"provider",field_type:FieldType::Id,required:true,description:"Validated provider identity assigned by Core to this engine session",reason:None},
// log-exempt: User cancellation: a closed workspace or a replaced indexing policy retires the context, and the replacement publishes its own decisions.
465
+
ifmatches!(error.code,ErrorCode::Cancelled){
466
+
return;
467
+
}
468
+
ifletSome(session) = started.upgrade(){
469
+
session.log(
470
+
"warn",
471
+
EngineLog::ExclusionsFailed,
472
+
"Indexing exclusions could not be published to the language server",
473
+
Some(core_error_detail(&error)),
474
+
);
475
+
}
476
+
});
477
+
}
478
+
479
+
/// Test seam that fixes the order between a start and its deferred Git walk.
480
+
///
481
+
/// A test holds a workspace before starting a server, observes the start
482
+
/// return while the decisions are still unresolved, then releases the walk and
483
+
/// waits for the publisher to finish. Roots no test holds pass straight
484
+
/// through, so concurrent tests are unaffected. Every wait is bounded, so a
485
+
/// failed assertion cannot leave a publisher thread blocked.
486
+
#[cfg(test)]
487
+
pub(crate)mod deferred_exclusions {
488
+
use std::path::{Path,PathBuf};
489
+
use std::sync::{Condvar,Mutex,MutexGuard,PoisonError};
490
+
use std::time::Duration;
491
+
492
+
/// Where a held workspace is: its walk waits, the test has released it, or
493
+
/// its publisher has finished.
494
+
#[derive(Clone,Copy,PartialEq)]
495
+
enumStage{
496
+
Held,
497
+
Released,
498
+
Finished,
499
+
}
500
+
501
+
/// Workspaces a test is watching; roots not listed are never held.
0 commit comments