File tree Expand file tree Collapse file tree 4 files changed +46
-28
lines changed
ide_completion/src/completions Expand file tree Collapse file tree 4 files changed +46
-28
lines changed Original file line number Diff line number Diff line change 11//! Completes lifetimes and labels.
22//!
33//! These completions work a bit differently in that they are only shown when what the user types
4- //! has a `'` preceding it, as our fake syntax tree is invalid otherwise(due to us not inserting a
5- //! lifetime but an ident for obvious reasons).
4+ //! has a `'` preceding it, as our fake syntax tree is invalid otherwise (due to us not inserting
5+ //! a lifetime but an ident for obvious reasons).
66//! Due to this all the tests for lifetimes and labels live in this module for the time being as
77//! there is no value in lifting these out into the outline module test since they will either not
88//! show up for normal completions, or they won't show completions other than lifetimes depending
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ path = "src/bin/main.rs"
2020anyhow = " 1.0.26"
2121crossbeam-channel = " 0.5.0"
2222dissimilar = " 1.0.2"
23- env_logger = { version = " 0.8.1 " , default-features = false }
23+ env_logger = { version = " 0.9 " , default-features = false }
2424itertools = " 0.10.0"
2525jod-thread = " 0.1.0"
2626log = " 0.4.8"
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl NotifyActor {
8383 self . watcher = None ;
8484 if !config. watch . is_empty ( ) {
8585 let ( watcher_sender, watcher_receiver) = unbounded ( ) ;
86- let watcher = log_notify_error ( Watcher :: new_immediate ( move |event| {
86+ let watcher = log_notify_error ( RecommendedWatcher :: new ( move |event| {
8787 watcher_sender. send ( event) . unwrap ( )
8888 } ) ) ;
8989 self . watcher = watcher. map ( |it| ( it, watcher_receiver) ) ;
@@ -214,7 +214,7 @@ impl NotifyActor {
214214
215215 fn watch ( & mut self , path : AbsPathBuf ) {
216216 if let Some ( ( watcher, _) ) = & mut self . watcher {
217- log_notify_error ( watcher. watch ( & path, RecursiveMode :: NonRecursive ) ) ;
217+ log_notify_error ( watcher. watch ( path. as_ref ( ) , RecursiveMode :: NonRecursive ) ) ;
218218 }
219219 }
220220 fn send ( & mut self , msg : loader:: Message ) {
You can’t perform that action at this time.
0 commit comments