a354a77030
* feat(services): jsdoc use custom name for display parts * fix(services): jsdoc typo * feat(services): revert jsDoc changes * feat(services): jsdoc improve displayparts with more comment kinds Improve rendering of JSDoc comment text with displayparts for: - `@typedef` - `@callback` - `@param` - `@property` * feat(services): jsdoc improve displayparts for template * test: accept baseline * test: update jsdoc parameterName * feat: resolve pr comments * test: add fourslash tests for jsdoc callback, typedef * test: accept baselines * test: revert changes for api baselines * refactor: naming * refactor: code quality * refactor: clean up code as to pr comments
117 lines
2.7 KiB
Plaintext
117 lines
2.7 KiB
Plaintext
[
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpWithUnknown.ts",
|
|
"position": 6,
|
|
"name": "1"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "eval",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "x",
|
|
"documentation": [
|
|
{
|
|
"text": "A String value that contains valid JavaScript code.",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "x",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "Evaluates JavaScript code and executes it.",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "x",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "A String value that contains valid JavaScript code.",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 5,
|
|
"length": 1
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 1
|
|
}
|
|
}
|
|
] |