We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1aad50 commit bffbe2eCopy full SHA for bffbe2e
1 file changed
src/vs/workbench/api/common/extHostLanguageFeatures.ts
@@ -67,10 +67,10 @@ class DocumentSymbolAdapter {
67
const res: modes.DocumentSymbol[] = [];
68
const parentStack: modes.DocumentSymbol[] = [];
69
for (const info of infos) {
70
- const element = <modes.DocumentSymbol>{
+ const element: modes.DocumentSymbol = {
71
name: info.name || '!!MISSING: name!!',
72
kind: typeConvert.SymbolKind.from(info.kind),
73
- tags: info.tags && info.tags.map(typeConvert.SymbolTag.from),
+ tags: info.tags ? info.tags.map(typeConvert.SymbolTag.from) : [],
74
detail: '',
75
containerName: info.containerName,
76
range: typeConvert.Range.from(info.location.range),
0 commit comments