From bd037a9faff73ad834f6b7f9000443ce4569e3d1 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Tue, 8 Sep 2020 14:06:23 +0200 Subject: [PATCH] small style tweaks --- src/languageFeatures.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/languageFeatures.ts b/src/languageFeatures.ts index 794c852..3ec1e64 100644 --- a/src/languageFeatures.ts +++ b/src/languageFeatures.ts @@ -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), @@ -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,