mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
small style tweaks
This commit is contained in:
parent
926a1051b8
commit
bd037a9faf
1 changed files with 8 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue