diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-21 09:12:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:12:26 -0400 |
commit | d6e086d681fd0564bbb8e62744aca0514e3bc575 (patch) | |
tree | 5bc4e688c0250283f696c9d0ab68d524ba5a9466 /test_util/src/lsp.rs | |
parent | da709729e3dd6f310182581ca1c6380ad51443fc (diff) |
fix(lsp): handle watched files events from symlinked config files (#19898)
Related to https://github.com/denoland/vscode_deno/issues/784
Diffstat (limited to 'test_util/src/lsp.rs')
-rw-r--r-- | test_util/src/lsp.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test_util/src/lsp.rs b/test_util/src/lsp.rs index 6fafc234c..59f67e3d9 100644 --- a/test_util/src/lsp.rs +++ b/test_util/src/lsp.rs @@ -641,16 +641,24 @@ impl LspClient { .stderr_lines_rx .as_ref() .expect("must setup with client_builder.capture_stderr()"); + let mut found_lines = Vec::new(); while Instant::now() < timeout_time { if let Ok(line) = lines_rx.try_recv() { if condition(&line) { return; } + found_lines.push(line); } std::thread::sleep(Duration::from_millis(20)); } - panic!("Timed out.") + eprintln!("==== STDERR OUTPUT ===="); + for line in found_lines { + eprintln!("{}", line) + } + eprintln!("== END STDERR OUTPUT =="); + + panic!("Timed out waiting on condition.") } pub fn initialize_default(&mut self) { |