From ec97c7dd4b5c1be83639769990ca6d37345089ca Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 23 Jan 2024 06:12:41 +0000 Subject: feat(lsp): include scope uri in "deno/didChangeDenoConfiguration" (#22002) --- cli/tests/integration/lsp_tests.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index ba44c670d..3ea6d2ab5 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -856,7 +856,8 @@ fn lsp_did_change_deno_configuration_notification() { res, Some(json!({ "changes": [{ - "uri": temp_dir.uri().join("deno.json").unwrap(), + "scopeUri": temp_dir.uri(), + "fileUri": temp_dir.uri().join("deno.json").unwrap(), "type": "added", "configurationType": "denoJson" }], @@ -879,7 +880,8 @@ fn lsp_did_change_deno_configuration_notification() { res, Some(json!({ "changes": [{ - "uri": temp_dir.uri().join("deno.json").unwrap(), + "scopeUri": temp_dir.uri(), + "fileUri": temp_dir.uri().join("deno.json").unwrap(), "type": "changed", "configurationType": "denoJson" }], @@ -899,7 +901,8 @@ fn lsp_did_change_deno_configuration_notification() { res, Some(json!({ "changes": [{ - "uri": temp_dir.uri().join("deno.json").unwrap(), + "scopeUri": temp_dir.uri(), + "fileUri": temp_dir.uri().join("deno.json").unwrap(), "type": "removed", "configurationType": "denoJson" }], @@ -919,7 +922,8 @@ fn lsp_did_change_deno_configuration_notification() { res, Some(json!({ "changes": [{ - "uri": temp_dir.uri().join("package.json").unwrap(), + "scopeUri": temp_dir.uri(), + "fileUri": temp_dir.uri().join("package.json").unwrap(), "type": "added", "configurationType": "packageJson" }], @@ -939,7 +943,8 @@ fn lsp_did_change_deno_configuration_notification() { res, Some(json!({ "changes": [{ - "uri": temp_dir.uri().join("package.json").unwrap(), + "scopeUri": temp_dir.uri(), + "fileUri": temp_dir.uri().join("package.json").unwrap(), "type": "changed", "configurationType": "packageJson" }], @@ -959,7 +964,8 @@ fn lsp_did_change_deno_configuration_notification() { res, Some(json!({ "changes": [{ - "uri": temp_dir.uri().join("package.json").unwrap(), + "scopeUri": temp_dir.uri(), + "fileUri": temp_dir.uri().join("package.json").unwrap(), "type": "removed", "configurationType": "packageJson" }], -- cgit v1.2.3