Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
small style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Sep 8, 2020
1 parent 926a105 commit bd037a9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,12 @@ export class DiagnosticsAdapter extends Adapter {
} = model.getPositionAt(diagStart + diagLength);

const tags: MarkerTag[] = [];
if (diag.reportsUnnecessary) tags.push(MarkerTag.Unnecessary);
if (diag.reportsDeprecated) tags.push(MarkerTag.Deprecated);
if (diag.reportsUnnecessary) {
tags.push(MarkerTag.Unnecessary);
}
if (diag.reportsDeprecated) {
tags.push(MarkerTag.Deprecated);
}

return {
severity: this._tsDiagnosticCategoryToMarkerSeverity(diag.category),
Expand Down Expand Up @@ -461,8 +465,9 @@ export class SuggestAdapter
}

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

return {
uri: resource,
Expand Down

0 comments on commit bd037a9

Please sign in to comment.