@@ -112,7 +112,12 @@ pub fn load_workspace(
112112 analysis. update_config ( Arc :: new ( emmyrc) ) ;
113113 analysis. init_std_lib ( None ) ;
114114
115- let file_infos = collect_files ( & workspace_folders, & analysis. emmyrc , exclude_pattern, include_pattern) ;
115+ let file_infos = collect_files (
116+ & workspace_folders,
117+ & analysis. emmyrc ,
118+ exclude_pattern,
119+ include_pattern,
120+ ) ;
116121 let files = file_infos
117122 . into_iter ( )
118123 . filter_map ( |file| {
@@ -145,7 +150,8 @@ pub fn collect_files(
145150 include_pattern : Option < Vec < String > > ,
146151) -> Vec < LuaFileInfo > {
147152 let mut files = Vec :: new ( ) ;
148- let ( match_pattern, exclude, exclude_dir) = calculate_include_and_exclude ( emmyrc, exclude_pattern, include_pattern) ;
153+ let ( match_pattern, exclude, exclude_dir) =
154+ calculate_include_and_exclude ( emmyrc, exclude_pattern, include_pattern) ;
149155
150156 let encoding = & emmyrc. workspace . encoding ;
151157
@@ -169,7 +175,11 @@ pub fn collect_files(
169175/// File patterns for workspace scanning: (include_patterns, exclude_patterns, exclude_dirs)
170176type FilePatterns = ( Vec < String > , Vec < String > , Vec < PathBuf > ) ;
171177
172- pub fn calculate_include_and_exclude ( emmyrc : & Emmyrc , exclude_pattern : Option < Vec < String > > , include_pattern : Option < Vec < String > > ) -> FilePatterns {
178+ pub fn calculate_include_and_exclude (
179+ emmyrc : & Emmyrc ,
180+ exclude_pattern : Option < Vec < String > > ,
181+ include_pattern : Option < Vec < String > > ,
182+ ) -> FilePatterns {
173183 let mut include = Vec :: new ( ) ;
174184 let mut exclude = Vec :: new ( ) ;
175185 let mut exclude_dirs = Vec :: new ( ) ;
0 commit comments