Skip to content

Commit 1d901bf

Browse files
Updated test case and baseline.
1 parent 2b278c9 commit 1d901bf

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

tests/baselines/reference/findAllRefsForStringLiteral2.baseline.jsonc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// === /a.ts ===
22
// /**
3-
// * @type {"foo" | "bar"}
3+
// * @type {"[|foo|]" | "bar"}
44
// */
55
// let x = "[|foo|]"/*FIND ALL REFS*/
66

@@ -24,6 +24,15 @@
2424
]
2525
},
2626
"references": [
27+
{
28+
"textSpan": {
29+
"start": 15,
30+
"length": 3
31+
},
32+
"fileName": "/a.ts",
33+
"isWriteAccess": false,
34+
"isInString": true
35+
},
2736
{
2837
"textSpan": {
2938
"start": 42,

tests/cases/fourslash/completionsAtJsDoc.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
//// * @type {Foo<{/**/}>}
66
//// */
77

8-
verify.completions({ marker: "", exact: [], isNewIdentifierLocation: true });
8+
verify.completions({
9+
marker: "",
10+
exact: {
11+
name: "readonly",
12+
sortText: completion.SortText.GlobalsOrKeywords
13+
},
14+
isNewIdentifierLocation: true,
15+
});

0 commit comments

Comments
 (0)