From c709f5df363887647915f7dd67e1c3bb8df6c526 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 7 May 2021 21:05:32 +1000 Subject: refactor(lsp): publish diagnostics independently (#10525) Resolves #10518 --- cli/bench/lsp.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/bench') diff --git a/cli/bench/lsp.rs b/cli/bench/lsp.rs index da02db486..aea238441 100644 --- a/cli/bench/lsp.rs +++ b/cli/bench/lsp.rs @@ -266,6 +266,10 @@ fn bench_big_file_edits(deno_exe: &Path) -> Result { }), )?; + let (method, _): (String, Option) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); + let (method, _): (String, Option) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); let (method, _): (String, Option) = client.read_notification()?; assert_eq!(method, "textDocument/publishDiagnostics"); @@ -324,6 +328,10 @@ fn bench_startup_shutdown(deno_exe: &Path) -> Result { }), )?; + let (method, _): (String, Option) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); + let (method, _): (String, Option) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); let (method, _): (String, Option) = client.read_notification()?; assert_eq!(method, "textDocument/publishDiagnostics"); -- cgit v1.2.3