summaryrefslogtreecommitdiff
path: root/cli/bench/lsp.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-05-07 21:05:32 +1000
committerGitHub <noreply@github.com>2021-05-07 21:05:32 +1000
commitc709f5df363887647915f7dd67e1c3bb8df6c526 (patch)
treebc4bbedc8bc7523bea9253046a2498554a454af1 /cli/bench/lsp.rs
parent98518f319df6804e3b2aaae8cf6c64143abea0fd (diff)
refactor(lsp): publish diagnostics independently (#10525)
Resolves #10518
Diffstat (limited to 'cli/bench/lsp.rs')
-rw-r--r--cli/bench/lsp.rs8
1 files changed, 8 insertions, 0 deletions
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
@@ -268,6 +268,10 @@ fn bench_big_file_edits(deno_exe: &Path) -> Result<Duration, AnyError> {
let (method, _): (String, Option<Value>) = client.read_notification()?;
assert_eq!(method, "textDocument/publishDiagnostics");
+ let (method, _): (String, Option<Value>) = client.read_notification()?;
+ assert_eq!(method, "textDocument/publishDiagnostics");
+ let (method, _): (String, Option<Value>) = client.read_notification()?;
+ assert_eq!(method, "textDocument/publishDiagnostics");
let messages: Vec<FixtureMessage> =
serde_json::from_slice(FIXTURE_DB_MESSAGES)?;
@@ -326,6 +330,10 @@ fn bench_startup_shutdown(deno_exe: &Path) -> Result<Duration, AnyError> {
let (method, _): (String, Option<Value>) = client.read_notification()?;
assert_eq!(method, "textDocument/publishDiagnostics");
+ let (method, _): (String, Option<Value>) = client.read_notification()?;
+ assert_eq!(method, "textDocument/publishDiagnostics");
+ let (method, _): (String, Option<Value>) = client.read_notification()?;
+ assert_eq!(method, "textDocument/publishDiagnostics");
let (_, response_error): (Option<Value>, Option<LspResponseError>) =
client.write_request("shutdown", json!(null))?;