summaryrefslogtreecommitdiff
path: root/cli/lsp/testing/server.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-29 16:25:48 -0400
committerGitHub <noreply@github.com>2023-03-29 16:25:48 -0400
commit89bbbd102c6050763105be39a49494a5ffdce35b (patch)
treec0b912058a193d12fc60fac91223e0fef9fc7637 /cli/lsp/testing/server.rs
parentbacbf949256e32ca84e7f11c0171db7d9a644b44 (diff)
refactor(lsp): remove boolean parameters on `documents.documents(...)` (#18493)
I think this makes things clearer at the call sites.
Diffstat (limited to 'cli/lsp/testing/server.rs')
-rw-r--r--cli/lsp/testing/server.rs6
1 files changed, 5 insertions, 1 deletions
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<ModuleSpecifier> =
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();