Updated test case and baseline.

This commit is contained in:
Daniel Rosenwasser 2022-10-04 23:34:20 +00:00
parent 2b278c9e3d
commit 1d901bfa82
2 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// === /a.ts ===
// /**
// * @type {"foo" | "bar"}
// * @type {"[|foo|]" | "bar"}
// */
// let x = "[|foo|]"/*FIND ALL REFS*/
@ -24,6 +24,15 @@
]
},
"references": [
{
"textSpan": {
"start": 15,
"length": 3
},
"fileName": "/a.ts",
"isWriteAccess": false,
"isInString": true
},
{
"textSpan": {
"start": 42,

View File

@ -5,4 +5,11 @@
//// * @type {Foo<{/**/}>}
//// */
verify.completions({ marker: "", exact: [], isNewIdentifierLocation: true });
verify.completions({
marker: "",
exact: {
name: "readonly",
sortText: completion.SortText.GlobalsOrKeywords
},
isNewIdentifierLocation: true,
});