Skip to content

Commit

Permalink
Fixes bug that entries would be marked as deprecated if kindModifiers…
Browse files Browse the repository at this point in the history
… is undefined.
  • Loading branch information
hediet committed Feb 6, 2023
1 parent d13eeb9 commit d27f113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/typescript/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export class SuggestAdapter extends Adapter implements languages.CompletionItemP
}

const tags: languages.CompletionItemTag[] = [];
if (entry.kindModifiers?.indexOf('deprecated') !== -1) {
if (entry.kindModifiers !== undefined && entry.kindModifiers.indexOf('deprecated') !== -1) {
tags.push(languages.CompletionItemTag.Deprecated);
}

Expand Down

0 comments on commit d27f113

Please sign in to comment.