Add `overload` to known JSDoc tag names.

This commit is contained in:
Daniel Rosenwasser 2023-02-14 22:04:30 +00:00
Родитель 73eba455a0
Коммит c7d3e9d4ac
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -145,6 +145,7 @@ const jsDocTagNames = [
"module",
"name",
"namespace",
"overload",
"override",
"package",
"param",
@ -347,7 +348,7 @@ function getTagNameDisplayPart(kind: SyntaxKind): (text: string) => SymbolDispla
/** @internal */
export function getJSDocTagNameCompletions(): CompletionEntry[] {
return jsDocTagNameCompletionEntries || (jsDocTagNameCompletionEntries = map(jsDocTagNames, tagName => {
return (jsDocTagNameCompletionEntries ||= map(jsDocTagNames, tagName => {
return {
name: tagName,
kind: ScriptElementKind.keyword,
@ -362,7 +363,7 @@ export const getJSDocTagNameCompletionDetails = getJSDocTagCompletionDetails;
/** @internal */
export function getJSDocTagCompletions(): CompletionEntry[] {
return jsDocTagCompletionEntries || (jsDocTagCompletionEntries = map(jsDocTagNames, tagName => {
return (jsDocTagCompletionEntries ||= map(jsDocTagNames, tagName => {
return {
name: `@${tagName}`,
kind: ScriptElementKind.keyword,