Merge pull request #3924 from kisstkondoros/fix/3923

Fix reference error in convert method of OutlineAdapter
This commit is contained in:
Henning Dieterichs 2023-04-24 12:13:09 +02:00 committed by GitHub
commit b61f404730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;