Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickinfoVerbosityClassInterfaceMerge.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

173 lines
3.6 KiB
Plaintext

// === QuickInfo ===
=== /quickinfoVerbosityClassInterfaceMerge.ts ===
//
// declare class Foo {
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | class Foo {
// | x: number;
// | y: string;
// | }
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | class Foo
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
// x: number;
// }
// declare interface Foo {
// y: string;
// }
// const f: Foo = { x: 1, y: "hello" };
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | class Foo {
// | x: number;
// | y: string;
// | }
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | class Foo
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
//
[
{
"marker": {
"Position": 18,
"LSPosition": {
"line": 1,
"character": 17
},
"Name": "1",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nclass Foo\n```\n"
},
"range": {
"start": {
"line": 1,
"character": 14
},
"end": {
"line": 1,
"character": 17
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 18,
"LSPosition": {
"line": 1,
"character": 17
},
"Name": "1",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nclass Foo {\n x: number;\n y: string;\n}\n```\n"
},
"range": {
"start": {
"line": 1,
"character": 14
},
"end": {
"line": 1,
"character": 17
}
}
},
"verbosityLevel": 1
}
},
{
"marker": {
"Position": 91,
"LSPosition": {
"line": 7,
"character": 12
},
"Name": "2",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nclass Foo\n```\n"
},
"range": {
"start": {
"line": 7,
"character": 9
},
"end": {
"line": 7,
"character": 12
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 91,
"LSPosition": {
"line": 7,
"character": 12
},
"Name": "2",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nclass Foo {\n x: number;\n y: string;\n}\n```\n"
},
"range": {
"start": {
"line": 7,
"character": 9
},
"end": {
"line": 7,
"character": 12
}
}
},
"verbosityLevel": 1
}
}
]