-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing large outline Maximum call stack size exceeded
#235889
Labels
bug
Issue identified by VS Code Team member as probable bug
perf
tree-widget
Tree widget issues
verified
Verification succeeded
Milestone
Comments
faraon-bot
added a commit
to faraon-bot/vscode
that referenced
this issue
Dec 12, 2024
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).
jrieken
added a commit
that referenced
this issue
Dec 12, 2024
how come the tree is being updated? |
I assume the performance problem was solved with #236601 |
/verified |
faraon-bot
added a commit
to faraon-bot/vscode
that referenced
this issue
Dec 31, 2024
Related to microsoft#235889 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/vscode/issues/235889?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Issue identified by VS Code Team member as probable bug
perf
tree-widget
Tree widget issues
verified
Verification succeeded
Closing a file with a very large outline open causes a Max Call Stack Error
Steps to Reproduce:
json.maxItemsComputed
to50000000
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: