diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-20 13:23:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 13:23:21 -0400 |
commit | da906de18437318527ae368932c2c8663db44f76 (patch) | |
tree | ca1e55b8a8380b452bb89ce3537f87980fa2c0da /cli/tests/integration/lsp_tests.rs | |
parent | a48d05fac779e53e92fe0e8b5668adf120f319e4 (diff) |
fix(lsp): allow caching deps in non-saved files (#16353)
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 7dc5ff02d..8390b0f6f 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -1084,21 +1084,21 @@ fn lsp_inlay_hints() { "text": r#"function a(b: string) { return b; } - + a("foo"); - + enum C { A, } - + parseInt("123", 8); - + const d = Date.now(); - + class E { f = Date.now(); } - + ["a"].map((v) => v + v); "# } @@ -1234,21 +1234,21 @@ fn lsp_inlay_hints_not_enabled() { "text": r#"function a(b: string) { return b; } - + a("foo"); - + enum C { A, } - + parseInt("123", 8); - + const d = Date.now(); - + class E { f = Date.now(); } - + ["a"].map((v) => v + v); "# } @@ -1871,7 +1871,7 @@ fn lsp_hover_dependency() { Some(json!({ "contents": { "kind": "markdown", - "value": "**Resolved Dependency**\n\n**Code**: http​://127.0.0.1:4545/xTypeScriptTypes.js\n" + "value": "**Resolved Dependency**\n\n**Code**: http​://127.0.0.1:4545/xTypeScriptTypes.js\n\n**Types**: http​://127.0.0.1:4545/xTypeScriptTypes.d.ts\n" }, "range": { "start": { @@ -1905,7 +1905,7 @@ fn lsp_hover_dependency() { Some(json!({ "contents": { "kind": "markdown", - "value": "**Resolved Dependency**\n\n**Code**: http​://127.0.0.1:4545/subdir/type_reference.js\n" + "value": "**Resolved Dependency**\n\n**Code**: http​://127.0.0.1:4545/subdir/type_reference.js\n\n**Types**: http​://127.0.0.1:4545/subdir/type_reference.d.ts\n" }, "range": { "start": { @@ -4256,7 +4256,7 @@ fn lsp_cache_location() { Some(json!({ "contents": { "kind": "markdown", - "value": "**Resolved Dependency**\n\n**Code**: http​://127.0.0.1:4545/xTypeScriptTypes.js\n" + "value": "**Resolved Dependency**\n\n**Code**: http​://127.0.0.1:4545/xTypeScriptTypes.js\n\n**Types**: http​://127.0.0.1:4545/xTypeScriptTypes.d.ts\n" }, "range": { "start": { |