mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
e0069505b9
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
126 lines
4.0 KiB
Plaintext
126 lines
4.0 KiB
Plaintext
// === QuickInfo ===
|
|
=== /quickinfoVerbosityTruncation1.ts ===
|
|
// type Str = string | {};
|
|
// type FooType = Str | number;
|
|
// type Sym = symbol | (() => void);
|
|
// type BarType = Sym | boolean;
|
|
// interface LotsOfProps {
|
|
// someLongPropertyName1: Str;
|
|
// someLongPropertyName2: FooType;
|
|
// someLongPropertyName3: Sym;
|
|
// someLongPropertyName4: BarType;
|
|
// someLongPropertyName5: Str;
|
|
// someLongPropertyName6: FooType;
|
|
// someLongPropertyName7: Sym;
|
|
// someLongPropertyName8: BarType;
|
|
// someLongMethodName1(a: FooType, b: BarType): Sym;
|
|
// someLongPropertyName9: Str;
|
|
// someLongPropertyName10: FooType;
|
|
// someLongPropertyName11: Sym;
|
|
// someLongPropertyName12: BarType;
|
|
// someLongPropertyName13: Str;
|
|
// someLongPropertyName14: FooType;
|
|
// someLongPropertyName15: Sym;
|
|
// someLongPropertyName16: BarType;
|
|
// someLongMethodName2(a: FooType, b: BarType): Sym;
|
|
// }
|
|
// const obj1: LotsOfProps = undefined as any as LotsOfProps;
|
|
// ^^^^
|
|
// | ----------------------------------------------------------------------
|
|
// | ```typescript
|
|
// | const obj1: {
|
|
// | someLongPropertyName1: Str;
|
|
// | someLongPropertyName2: FooType;
|
|
// | someLongPropertyName3: Sym;
|
|
// | someLongPropertyName4: BarType;
|
|
// | someLongPropertyName5: Str;
|
|
// | someLongPropertyName6: FooType;
|
|
// | someLongPropertyName7: Sym;
|
|
// | someLongPropertyName8: BarType;
|
|
// | someLongMethodName1(a: FooType, b: BarType): Sym;
|
|
// | someLongPropertyName9: Str;
|
|
// | someLongPropertyName10: FooType;
|
|
// | someLongPropertyName11: Sym;
|
|
// | someLongPropertyName12: BarType;
|
|
// | someLongPropertyName13: Str;
|
|
// | someLongPropertyName14: FooType;
|
|
// | someLongPropertyName15: Sym;
|
|
// | someLongPropertyName16: BarType;
|
|
// | someLongMethodName2(a: FooType, b: BarType): Sym;
|
|
// | }
|
|
// | ```
|
|
// |
|
|
// | (verbosity level: 1)
|
|
// | ----------------------------------------------------------------------
|
|
// ^^^^
|
|
// | ----------------------------------------------------------------------
|
|
// | ```typescript
|
|
// | const obj1: LotsOfProps
|
|
// | ```
|
|
// |
|
|
// | (verbosity level: 0)
|
|
// | ----------------------------------------------------------------------
|
|
[
|
|
{
|
|
"marker": {
|
|
"Position": 812,
|
|
"LSPosition": {
|
|
"line": 24,
|
|
"character": 10
|
|
},
|
|
"Name": "o1",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"hover": {
|
|
"contents": {
|
|
"kind": "markdown",
|
|
"value": "```typescript\nconst obj1: LotsOfProps\n```\n"
|
|
},
|
|
"range": {
|
|
"start": {
|
|
"line": 24,
|
|
"character": 6
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"character": 10
|
|
}
|
|
},
|
|
"canIncreaseVerbosity": true
|
|
},
|
|
"verbosityLevel": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 812,
|
|
"LSPosition": {
|
|
"line": 24,
|
|
"character": 10
|
|
},
|
|
"Name": "o1",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"hover": {
|
|
"contents": {
|
|
"kind": "markdown",
|
|
"value": "```typescript\nconst obj1: {\n someLongPropertyName1: Str;\n someLongPropertyName2: FooType;\n someLongPropertyName3: Sym;\n someLongPropertyName4: BarType;\n someLongPropertyName5: Str;\n someLongPropertyName6: FooType;\n someLongPropertyName7: Sym;\n someLongPropertyName8: BarType;\n someLongMethodName1(a: FooType, b: BarType): Sym;\n someLongPropertyName9: Str;\n someLongPropertyName10: FooType;\n someLongPropertyName11: Sym;\n someLongPropertyName12: BarType;\n someLongPropertyName13: Str;\n someLongPropertyName14: FooType;\n someLongPropertyName15: Sym;\n someLongPropertyName16: BarType;\n someLongMethodName2(a: FooType, b: BarType): Sym;\n}\n```\n"
|
|
},
|
|
"range": {
|
|
"start": {
|
|
"line": 24,
|
|
"character": 6
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"character": 10
|
|
}
|
|
},
|
|
"canIncreaseVerbosity": true
|
|
},
|
|
"verbosityLevel": 1
|
|
}
|
|
}
|
|
] |