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/tsc.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/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 3c70e4029..6ef9b1dc3 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -3,6 +3,7 @@ use super::code_lens; use super::config; use super::documents::AssetOrDocument; +use super::documents::DocumentsFilter; use super::language_server; use super::language_server::StateSnapshot; use super::performance::Performance; @@ -2760,7 +2761,7 @@ fn op_respond(state: &mut OpState, args: Response) -> bool { fn op_script_names(state: &mut OpState) -> Vec<String> { let state = state.borrow_mut::<State>(); let documents = &state.state_snapshot.documents; - let open_docs = documents.documents(true, true); + let open_docs = documents.documents(DocumentsFilter::OpenDiagnosable); let mut result = Vec::new(); let mut seen = HashSet::new(); |