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 #3923
pull/3924/head
Tamas Kiss 2023-04-20 11:24:10 +00:00
parent 8270c45a38
commit c270d67d6d
1 changed files with 1 additions and 1 deletions

View File

@ -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;