TypeScript/tests/baselines/reference/jsDocFunctionSignatures5.baseline
Sang a354a77030
Improve rendering of JSDoc comment text with displayparts (#43390)
* 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
2021-04-09 09:44:44 -07:00

272 lines
6.8 KiB
Plaintext

[
{
"marker": {
"fileName": "/tests/cases/fourslash/Foo.js",
"position": 489,
"name": ""
},
"signatureHelp": {
"items": [
{
"isVariadic": false,
"prefixDisplayParts": [
{
"text": "pathFilter",
"kind": "functionName"
},
{
"text": "(",
"kind": "punctuation"
}
],
"suffixDisplayParts": [
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "any",
"kind": "keyword"
},
{
"text": "[",
"kind": "punctuation"
},
{
"text": "]",
"kind": "punctuation"
}
],
"separatorDisplayParts": [
{
"text": ",",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
}
],
"parameters": [
{
"name": "basePath",
"documentation": [
{
"text": "The base path where the search will be performed.",
"kind": "text"
}
],
"displayParts": [
{
"text": "basePath",
"kind": "parameterName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "string",
"kind": "keyword"
}
],
"isOptional": false,
"isRest": false
},
{
"name": "pattern",
"documentation": [
{
"text": "A string defining a regexp of a glob pattern.",
"kind": "text"
}
],
"displayParts": [
{
"text": "pattern",
"kind": "parameterName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "string",
"kind": "keyword"
}
],
"isOptional": false,
"isRest": false
},
{
"name": "type",
"documentation": [
{
"text": "The search pattern type, can be a regexp or a glob.",
"kind": "text"
}
],
"displayParts": [
{
"text": "type",
"kind": "parameterName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "string",
"kind": "keyword"
}
],
"isOptional": false,
"isRest": false
},
{
"name": "options",
"documentation": [
{
"text": "A object containing options to the search.",
"kind": "text"
}
],
"displayParts": [
{
"text": "options",
"kind": "parameterName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "any",
"kind": "keyword"
}
],
"isOptional": false,
"isRest": false
}
],
"documentation": [
{
"text": "Filters a path based on a regexp or glob pattern.",
"kind": "text"
}
],
"tags": [
{
"name": "param",
"text": [
{
"text": "basePath",
"kind": "parameterName"
},
{
"text": " ",
"kind": "space"
},
{
"text": "The base path where the search will be performed.",
"kind": "text"
}
]
},
{
"name": "param",
"text": [
{
"text": "pattern",
"kind": "parameterName"
},
{
"text": " ",
"kind": "space"
},
{
"text": "A string defining a regexp of a glob pattern.",
"kind": "text"
}
]
},
{
"name": "param",
"text": [
{
"text": "type",
"kind": "parameterName"
},
{
"text": " ",
"kind": "space"
},
{
"text": "The search pattern type, can be a regexp or a glob.",
"kind": "text"
}
]
},
{
"name": "param",
"text": [
{
"text": "options",
"kind": "parameterName"
},
{
"text": " ",
"kind": "space"
},
{
"text": "A object containing options to the search.",
"kind": "text"
}
]
},
{
"name": "return",
"text": [
{
"text": "A list containing the filtered paths.",
"kind": "text"
}
]
}
]
}
],
"applicableSpan": {
"start": 489,
"length": 23
},
"selectedItemIndex": 0,
"argumentIndex": 0,
"argumentCount": 4
}
}
]