mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Merge pull request #80 from microsoft/more_4_4
Handle the new undefined logic in TypeScript 4.4
This commit is contained in:
commit
ba7abda22f
1 changed files with 2 additions and 1 deletions
|
|
@ -893,9 +893,10 @@ export class OutlineAdapter extends Adapter implements languages.DocumentSymbolP
|
|||
range: this._textSpanToRange(model, item.spans[0]),
|
||||
selectionRange: this._textSpanToRange(model, item.spans[0]),
|
||||
tags: [],
|
||||
containerName: containerLabel
|
||||
};
|
||||
|
||||
if (containerLabel) result.containerName = containerLabel;
|
||||
|
||||
if (item.childItems && item.childItems.length > 0) {
|
||||
for (let child of item.childItems) {
|
||||
convert(bucket, child, result.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue