Skip to content

Commit 441afcd

Browse files
committed
fix config file watch
1 parent 3d1af0d commit 441afcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/emmylua_ls/src/handlers/initialized/regsiter_file_watch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ fn register_files_watch_use_lsp_client(client: Arc<ClientProxy>) {
5252
kind: Some(WatchKind::Create | WatchKind::Change | WatchKind::Delete),
5353
},
5454
FileSystemWatcher {
55-
glob_pattern: GlobPattern::String(".luarc.json".into()),
55+
glob_pattern: GlobPattern::String("**/.luarc.json".into()),
5656
kind: Some(WatchKind::Create | WatchKind::Change | WatchKind::Delete),
5757
},
5858
FileSystemWatcher {
59-
glob_pattern: GlobPattern::String(".emmyrc.json".into()),
59+
glob_pattern: GlobPattern::String("**/.emmyrc.json".into()),
6060
kind: Some(WatchKind::Create | WatchKind::Change | WatchKind::Delete),
6161
},
6262
],

0 commit comments

Comments
 (0)