Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickinfoVerbosityIndexSignature.baseline
e0069505b9 Use typescript instead of tsx for hover code block language (#3458)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-04-22 17:14:11 +00:00

215 lines
4.6 KiB
Plaintext

// === QuickInfo ===
=== /quickinfoVerbosityIndexSignature.ts ===
// type Key = string | number;
// interface Apple {
// banana: number;
// }
// interface Foo {
// [a: Key]: Apple;
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | (parameter) a: string | number
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | (parameter) a: Key
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
// }
// const f: Foo = {};
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | const f: {
// | [a: string]: {
// | banana: number;
// | };
// | [a: number]: {
// | banana: number;
// | };
// | }
// | ```
// |
// | (verbosity level: 2)
// | ----------------------------------------------------------------------
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | const f: {
// | [a: string]: Apple;
// | [a: number]: Apple;
// | }
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | const f: Foo
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
[
{
"marker": {
"Position": 90,
"LSPosition": {
"line": 5,
"character": 6
},
"Name": "a",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(parameter) a: Key\n```\n"
},
"range": {
"start": {
"line": 5,
"character": 5
},
"end": {
"line": 5,
"character": 6
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 90,
"LSPosition": {
"line": 5,
"character": 6
},
"Name": "a",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(parameter) a: string | number\n```\n"
},
"range": {
"start": {
"line": 5,
"character": 5
},
"end": {
"line": 5,
"character": 6
}
}
},
"verbosityLevel": 1
}
},
{
"marker": {
"Position": 114,
"LSPosition": {
"line": 7,
"character": 7
},
"Name": "f",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst f: Foo\n```\n"
},
"range": {
"start": {
"line": 7,
"character": 6
},
"end": {
"line": 7,
"character": 7
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 114,
"LSPosition": {
"line": 7,
"character": 7
},
"Name": "f",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst f: {\n [a: string]: Apple;\n [a: number]: Apple;\n}\n```\n"
},
"range": {
"start": {
"line": 7,
"character": 6
},
"end": {
"line": 7,
"character": 7
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 1
}
},
{
"marker": {
"Position": 114,
"LSPosition": {
"line": 7,
"character": 7
},
"Name": "f",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst f: {\n [a: string]: {\n banana: number;\n };\n [a: number]: {\n banana: number;\n };\n}\n```\n"
},
"range": {
"start": {
"line": 7,
"character": 6
},
"end": {
"line": 7,
"character": 7
}
}
},
"verbosityLevel": 2
}
}
]