Skip to content

Commit

Permalink
Make sure modes.DocumentSymbol.tags is not undefined
Browse files Browse the repository at this point in the history
Fixes #80023
  • Loading branch information
mjbvz committed Aug 29, 2019
1 parent c1aad50 commit bffbe2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/api/common/extHostLanguageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class DocumentSymbolAdapter {
const res: modes.DocumentSymbol[] = [];
const parentStack: modes.DocumentSymbol[] = [];
for (const info of infos) {
const element = <modes.DocumentSymbol>{
const element: modes.DocumentSymbol = {
name: info.name || '!!MISSING: name!!',
kind: typeConvert.SymbolKind.from(info.kind),
tags: info.tags && info.tags.map(typeConvert.SymbolTag.from),
tags: info.tags ? info.tags.map(typeConvert.SymbolTag.from) : [],
detail: '',
containerName: info.containerName,
range: typeConvert.Range.from(info.location.range),
Expand Down

0 comments on commit bffbe2e

Please sign in to comment.