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]>
97 lines
2.0 KiB
Plaintext
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
] |