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

177 lines
3.7 KiB
Plaintext

// === QuickInfo ===
=== /quickinfoVerbosityIntersection1.ts ===
// {
// type Foo = { a: "a" | "c" };
// type Bar = { a: "a" | "b" };
// const obj: Foo & Bar = { a: "a" };
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const obj: {
// | a: "a" | "c";
// | } & {
// | a: "a" | "b";
// | }
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const obj: Foo & Bar
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
// }
// {
// type Foo = { a: "c" };
// type Bar = { a: "b" };
// const obj: Foo & Bar = { a: "" };
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const obj: never
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
// }
// {
// type Foo = { a: "c" };
// type Bar = { a: "b" };
// type Never = Foo & Bar;
// const obj: Never = { a: "" };
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const obj: never
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
// }
[
{
"marker": {
"Position": 81,
"LSPosition": {
"line": 3,
"character": 13
},
"Name": "o1",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst obj: Foo & Bar\n```\n"
},
"range": {
"start": {
"line": 3,
"character": 10
},
"end": {
"line": 3,
"character": 13
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 81,
"LSPosition": {
"line": 3,
"character": 13
},
"Name": "o1",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst obj: {\n a: \"a\" | \"c\";\n} & {\n a: \"a\" | \"b\";\n}\n```\n"
},
"range": {
"start": {
"line": 3,
"character": 10
},
"end": {
"line": 3,
"character": 13
}
}
},
"verbosityLevel": 1
}
},
{
"marker": {
"Position": 178,
"LSPosition": {
"line": 8,
"character": 13
},
"Name": "o2",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst obj: never\n```\n"
},
"range": {
"start": {
"line": 8,
"character": 10
},
"end": {
"line": 8,
"character": 13
}
}
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 302,
"LSPosition": {
"line": 14,
"character": 13
},
"Name": "o3",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst obj: never\n```\n"
},
"range": {
"start": {
"line": 14,
"character": 10
},
"end": {
"line": 14,
"character": 13
}
}
},
"verbosityLevel": 0
}
}
]