File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -208,15 +208,15 @@ impl LanguageServerState {
208
208
match e. kind {
209
209
notify:: EventKind :: Modify ( kind) => {
210
210
if let notify:: event:: ModifyKind :: Data ( data_change) = kind {
211
- if let notify:: event:: DataChange :: Content = data_change {
211
+ if let notify:: event:: DataChange :: Any = data_change {
212
212
let paths = e. paths ;
213
213
let kcl_config_file: Vec < PathBuf > =
214
214
filter_kcl_config_file ( & paths) ;
215
215
if !kcl_config_file. is_empty ( ) {
216
216
// TODO: wait for fix `kcl mod metadata` to read only. Otherwise it will lead to an infinite loop
217
- // return Some(Event::FileWatcher(
218
- // FileWatcherEvent::ChangedConfigFile(kcl_config_file),
219
- // ));
217
+ return Some ( Event :: FileWatcher (
218
+ FileWatcherEvent :: ChangedConfigFile ( kcl_config_file) ,
219
+ ) ) ;
220
220
}
221
221
}
222
222
}
Original file line number Diff line number Diff line change @@ -1528,8 +1528,7 @@ fn complete_import_external_file_e2e_test() {
1528
1528
}
1529
1529
1530
1530
// TODO: wait for fix `kcl mod metadata` to read only. Otherwise it will lead to an infinite loop
1531
- #[ allow( dead_code) ]
1532
- // #[test]
1531
+ #[ test]
1533
1532
fn mod_file_watcher_test ( ) {
1534
1533
let path = PathBuf :: from ( "." )
1535
1534
. join ( "src" )
You can’t perform that action at this time.
0 commit comments