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

97 lines
2.0 KiB
Plaintext

// === QuickInfo ===
=== /quickInfoOnParameterProperties.ts ===
// interface IFoo {
// /** this is the name of blabla
// * - use blabla
// * @example blabla
// */
// name?: string;
// }
//
// // test1 should work
// class Foo implements IFoo {
// //public name: string = '';
// constructor(
// public name: string, // documentation should leech and work !
// ^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | (property) Foo.name: string
// | ```
// |
// | ----------------------------------------------------------------------
// ) {
// }
// }
//
// // test2 work
// class Foo2 implements IFoo {
// public name: string = ''; // documentation leeched and work !
// ^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | (property) Foo2.name: string
// | ```
// |
// | ----------------------------------------------------------------------
// constructor(
// //public name: string,
// ) {
// }
// }
[
{
"marker": {
"Position": 226,
"LSPosition": {
"line": 12,
"character": 13
},
"Name": "1",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(property) Foo.name: string\n```\n"
},
"range": {
"start": {
"line": 12,
"character": 11
},
"end": {
"line": 12,
"character": 15
}
}
}
},
{
"marker": {
"Position": 347,
"LSPosition": {
"line": 19,
"character": 11
},
"Name": "2",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(property) Foo2.name: string\n```\n"
},
"range": {
"start": {
"line": 19,
"character": 9
},
"end": {
"line": 19,
"character": 13
}
}
}
}
]