Files
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

165 lines
3.7 KiB
Plaintext

// === QuickInfo ===
=== /quickinfoVerbosity2.ts ===
// type Str = string | {};
// type FooType = Str | number;
// type Sym = symbol | (() => void);
// type BarType = Sym | boolean;
// type BothType = FooType | BarType;
// const both: BothType = 1;
// ^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const both: (boolean | (symbol | (() => void))) | (number | (string | {}))
// | ```
// |
// | (verbosity level: 3)
// | ----------------------------------------------------------------------
// ^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const both: (boolean | Sym) | (number | Str)
// | ```
// |
// | (verbosity level: 2)
// | ----------------------------------------------------------------------
// ^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const both: BarType | FooType
// | ```
// |
// | (verbosity level: 1)
// | ----------------------------------------------------------------------
// ^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const both: BothType
// | ```
// |
// | (verbosity level: 0)
// | ----------------------------------------------------------------------
[
{
"marker": {
"Position": 162,
"LSPosition": {
"line": 5,
"character": 10
},
"Name": "b",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst both: BothType\n```\n"
},
"range": {
"start": {
"line": 5,
"character": 6
},
"end": {
"line": 5,
"character": 10
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 0
}
},
{
"marker": {
"Position": 162,
"LSPosition": {
"line": 5,
"character": 10
},
"Name": "b",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst both: BarType | FooType\n```\n"
},
"range": {
"start": {
"line": 5,
"character": 6
},
"end": {
"line": 5,
"character": 10
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 1
}
},
{
"marker": {
"Position": 162,
"LSPosition": {
"line": 5,
"character": 10
},
"Name": "b",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst both: (boolean | Sym) | (number | Str)\n```\n"
},
"range": {
"start": {
"line": 5,
"character": 6
},
"end": {
"line": 5,
"character": 10
}
},
"canIncreaseVerbosity": true
},
"verbosityLevel": 2
}
},
{
"marker": {
"Position": 162,
"LSPosition": {
"line": 5,
"character": 10
},
"Name": "b",
"Data": {}
},
"item": {
"hover": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst both: (boolean | (symbol | (() => void))) | (number | (string | {}))\n```\n"
},
"range": {
"start": {
"line": 5,
"character": 6
},
"end": {
"line": 5,
"character": 10
}
}
},
"verbosityLevel": 3
}
}
]