@@ -83,7 +83,7 @@ async fn test_diagnostics(test_db: PgPool) {
8383 . expect ( "Unable to open test file" ) ;
8484
8585 let diagnostics = workspace
86- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
86+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
8787 path : path. clone ( ) ,
8888 categories : RuleCategories :: all ( ) ,
8989 max_diagnostics : 100 ,
@@ -141,7 +141,7 @@ async fn test_syntax_error(test_db: PgPool) {
141141 . expect ( "Unable to open test file" ) ;
142142
143143 let diagnostics = workspace
144- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
144+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
145145 path : path. clone ( ) ,
146146 categories : RuleCategories :: all ( ) ,
147147 max_diagnostics : 100 ,
@@ -181,13 +181,14 @@ async fn correctly_ignores_files() {
181181 seect 1;
182182 "# ;
183183
184- let diagnostics_result = workspace. pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
185- path : path. clone ( ) ,
186- categories : RuleCategories :: all ( ) ,
187- max_diagnostics : 100 ,
188- only : vec ! [ ] ,
189- skip : vec ! [ ] ,
190- } ) ;
184+ let diagnostics_result =
185+ workspace. pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
186+ path : path. clone ( ) ,
187+ categories : RuleCategories :: all ( ) ,
188+ max_diagnostics : 100 ,
189+ only : vec ! [ ] ,
190+ skip : vec ! [ ] ,
191+ } ) ;
191192
192193 assert ! (
193194 diagnostics_result. is_ok_and( |res| res. diagnostics. is_empty( )
@@ -257,7 +258,7 @@ async fn test_dedupe_diagnostics(test_db: PgPool) {
257258 . expect ( "Unable to open test file" ) ;
258259
259260 let diagnostics = workspace
260- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
261+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
261262 path : path. clone ( ) ,
262263 categories : RuleCategories :: all ( ) ,
263264 max_diagnostics : 100 ,
@@ -322,7 +323,7 @@ async fn test_plpgsql_assign_composite_types(test_db: PgPool) {
322323 . expect ( "Unable to open test file" ) ;
323324
324325 let diagnostics = workspace
325- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
326+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
326327 path : path. clone ( ) ,
327328 categories : RuleCategories :: all ( ) ,
328329 max_diagnostics : 100 ,
@@ -376,7 +377,7 @@ async fn test_positional_params(test_db: PgPool) {
376377 . expect ( "Unable to open test file" ) ;
377378
378379 let diagnostics = workspace
379- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
380+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
380381 path : path. clone ( ) ,
381382 categories : RuleCategories :: all ( ) ,
382383 max_diagnostics : 100 ,
@@ -437,7 +438,7 @@ async fn test_disable_plpgsql_check(test_db: PgPool) {
437438 . expect ( "Unable to open test file" ) ;
438439
439440 let diagnostics = workspace
440- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
441+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
441442 path : path. clone ( ) ,
442443 categories : RuleCategories :: all ( ) ,
443444 max_diagnostics : 100 ,
@@ -469,7 +470,7 @@ async fn test_disable_plpgsql_check(test_db: PgPool) {
469470 } ) ;
470471
471472 let diagnostics = workspace
472- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
473+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
473474 path : path. clone ( ) ,
474475 categories : RuleCategories :: all ( ) ,
475476 max_diagnostics : 100 ,
@@ -529,7 +530,7 @@ async fn test_disable_typecheck(test_db: PgPool) {
529530 . expect ( "Unable to open test file" ) ;
530531
531532 let diagnostics = workspace
532- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
533+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
533534 path : path. clone ( ) ,
534535 categories : RuleCategories :: all ( ) ,
535536 max_diagnostics : 100 ,
@@ -562,7 +563,7 @@ async fn test_disable_typecheck(test_db: PgPool) {
562563 } ) ;
563564
564565 let diagnostics = workspace
565- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
566+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
566567 path : path. clone ( ) ,
567568 categories : RuleCategories :: all ( ) ,
568569 max_diagnostics : 100 ,
@@ -609,7 +610,7 @@ FOR NO KEY UPDATE;
609610 . expect ( "Unable to open test file" ) ;
610611
611612 let diagnostics = workspace
612- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
613+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
613614 path : path. clone ( ) ,
614615 categories : RuleCategories :: all ( ) ,
615616 max_diagnostics : 100 ,
@@ -670,7 +671,7 @@ async fn test_cstyle_comments(test_db: PgPool) {
670671 . expect ( "Unable to open test file" ) ;
671672
672673 let diagnostics = workspace
673- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
674+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
674675 path : path. clone ( ) ,
675676 categories : RuleCategories :: all ( ) ,
676677 max_diagnostics : 100 ,
@@ -730,7 +731,7 @@ async fn test_search_path_configuration(test_db: PgPool) {
730731 . expect ( "Unable to open test file" ) ;
731732
732733 let diagnostics_glob = workspace
733- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
734+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
734735 path : path_glob. clone ( ) ,
735736 categories : RuleCategories :: all ( ) ,
736737 max_diagnostics : 100 ,
@@ -776,7 +777,7 @@ async fn test_search_path_configuration(test_db: PgPool) {
776777 . expect ( "Unable to open test file" ) ;
777778
778779 let diagnostics_glob = workspace
779- . pull_diagnostics ( crate :: workspace:: PullDiagnosticsParams {
780+ . pull_file_diagnostics ( crate :: workspace:: PullFileDiagnosticsParams {
780781 path : path_glob. clone ( ) ,
781782 categories : RuleCategories :: all ( ) ,
782783 max_diagnostics : 100 ,
0 commit comments