Fix reference error in convert method of OutlineAdapter
As the result object is about to be created, it can not be referred to when mapping child items. This fixes #3923pull/3924/head
parent
8270c45a38
commit
c270d67d6d
|
@ -890,7 +890,7 @@ export class OutlineAdapter extends Adapter implements languages.DocumentSymbolP
|
|||
range: this._textSpanToRange(model, item.spans[0]),
|
||||
selectionRange: this._textSpanToRange(model, item.spans[0]),
|
||||
tags: [],
|
||||
children: item.childItems?.map((child) => convert(child, result.name)),
|
||||
children: item.childItems?.map((child) => convert(child, item.text)),
|
||||
containerName: containerLabel
|
||||
};
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue