Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix max call stack error when closing large outline
Fixes microsoft#235889 Implement an iterative approach to manage the outline in the `OutlineModel` class. * Add a stack to handle the children of the outline elements iteratively in the `_makeOutlineElement` method. * Replace the recursive call with a loop that processes the stack in the `_makeOutlineElement` method. * Add a stack to handle the children of the document symbols iteratively in the `_flattenDocumentSymbols` method. * Replace the recursive call with a loop that processes the stack in the `_flattenDocumentSymbols` method. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/vscode/issues/235889?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information