diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-29 16:25:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 16:25:48 -0400 |
commit | 89bbbd102c6050763105be39a49494a5ffdce35b (patch) | |
tree | c0b912058a193d12fc60fac91223e0fef9fc7637 /cli/lsp/testing/server.rs | |
parent | bacbf949256e32ca84e7f11c0171db7d9a644b44 (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.rs | 6 |
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(); |