add SymbolInformation.tags, render deprecated items in quick outline and workspace symbol search

This commit is contained in:
Johannes Rieken
2019-08-23 10:25:15 +02:00
parent 87c7042e1d
commit 043a06542d
10 changed files with 52 additions and 38 deletions

View File

@@ -70,8 +70,8 @@ class DocumentSymbolAdapter {
const element = <modes.DocumentSymbol>{
name: info.name || '!!MISSING: name!!',
kind: typeConvert.SymbolKind.from(info.kind),
tags: [],
detail: undefined!, // Strict null override — avoid changing behavior
tags: info.tags && info.tags.map(typeConvert.SymbolTag.from),
detail: '',
containerName: info.containerName,
range: typeConvert.Range.from(info.location.range),
selectionRange: typeConvert.Range.from(info.location.range),