Merge pull request #3531 from microsoft/hediet/bugfix

Fixes bug that entries would be marked as deprecated if kindModifiers is undefined.
pull/3535/head
Henning Dieterichs 2 years ago committed by GitHub
commit accd0df430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}

Loading…
Cancel
Save