mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
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
This commit is contained in:
parent
8270c45a38
commit
c270d67d6d
1 changed files with 1 additions and 1 deletions
|
|
@ -890,7 +890,7 @@ export class OutlineAdapter extends Adapter implements languages.DocumentSymbolP
|
||||||
range: this._textSpanToRange(model, item.spans[0]),
|
range: this._textSpanToRange(model, item.spans[0]),
|
||||||
selectionRange: this._textSpanToRange(model, item.spans[0]),
|
selectionRange: this._textSpanToRange(model, item.spans[0]),
|
||||||
tags: [],
|
tags: [],
|
||||||
children: item.childItems?.map((child) => convert(child, result.name)),
|
children: item.childItems?.map((child) => convert(child, item.text)),
|
||||||
containerName: containerLabel
|
containerName: containerLabel
|
||||||
};
|
};
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue