From 89bbbd102c6050763105be39a49494a5ffdce35b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 29 Mar 2023 16:25:48 -0400 Subject: refactor(lsp): remove boolean parameters on `documents.documents(...)` (#18493) I think this makes things clearer at the call sites. --- cli/lsp/testing/server.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/lsp/testing') diff --git a/cli/lsp/testing/server.rs b/cli/lsp/testing/server.rs index 61db4316a..638ab5b55 100644 --- a/cli/lsp/testing/server.rs +++ b/cli/lsp/testing/server.rs @@ -8,6 +8,7 @@ use super::lsp_custom; use crate::lsp::client::Client; use crate::lsp::client::TestingNotification; use crate::lsp::config; +use crate::lsp::documents::DocumentsFilter; use crate::lsp::language_server::StateSnapshot; use crate::lsp::performance::Performance; @@ -92,7 +93,10 @@ impl TestServer { // eliminating any we go over when iterating over the document let mut keys: HashSet = tests.keys().cloned().collect(); - for document in snapshot.documents.documents(false, true) { + for document in snapshot + .documents + .documents(DocumentsFilter::AllDiagnosable) + { let specifier = document.specifier(); keys.remove(specifier); let script_version = document.script_version(); -- cgit v1.2.3