Skip to content

Commit bffbe2e

Browse files
committed
Make sure modes.DocumentSymbol.tags is not undefined
Fixes microsoft#80023
1 parent c1aad50 commit bffbe2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/api/common/extHostLanguageFeatures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ class DocumentSymbolAdapter {
6767
const res: modes.DocumentSymbol[] = [];
6868
const parentStack: modes.DocumentSymbol[] = [];
6969
for (const info of infos) {
70-
const element = <modes.DocumentSymbol>{
70+
const element: modes.DocumentSymbol = {
7171
name: info.name || '!!MISSING: name!!',
7272
kind: typeConvert.SymbolKind.from(info.kind),
73-
tags: info.tags && info.tags.map(typeConvert.SymbolTag.from),
73+
tags: info.tags ? info.tags.map(typeConvert.SymbolTag.from) : [],
7474
detail: '',
7575
containerName: info.containerName,
7676
range: typeConvert.Range.from(info.location.range),

0 commit comments

Comments
 (0)