mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 12:57:11 -06:00
Updated test case and baseline.
This commit is contained in:
parent
2b278c9e3d
commit
1d901bfa82
@ -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,
|
||||
|
||||
@ -5,4 +5,11 @@
|
||||
//// * @type {Foo<{/**/}>}
|
||||
//// */
|
||||
|
||||
verify.completions({ marker: "", exact: [], isNewIdentifierLocation: true });
|
||||
verify.completions({
|
||||
marker: "",
|
||||
exact: {
|
||||
name: "readonly",
|
||||
sortText: completion.SortText.GlobalsOrKeywords
|
||||
},
|
||||
isNewIdentifierLocation: true,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user