Skip to content

Fix OOM crash on arm related to tree sitter powershell grammar - #273179

Merged
Daniel Imms (Tyriar) merged 6 commits into
mainfrom
hediet/b/minimum-fly
Oct 24, 2025
Merged

Daniel Imms (Tyriar) merged 6 commits into
mainfrom
hediet/b/minimum-fly

Conversation

@hediet

@hediet Henning Dieterichs (hediet) commented Oct 24, 2025 •

Copy link
Copy Markdown
Member

Fixes #273177 by making sure the powershell tree-sitter wasm is not loaded anymore.

Copilot AI review requested due to automatic review settings October 24, 2025 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR disables terminal command parsing features due to performance issues documented in #273177. The changes temporarily disable two tree-sitter parsing operations that were impacting performance.

  • Disables sub-command extraction functionality
  • Disables PowerShell chain operator rewrites

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
treeSitterCommandParser.ts Adds a feature flag to disable sub-command extraction, making it throw an error instead
commandSimplifier.ts Adds a feature flag to disable PowerShell chain operator rewrites

@Tyriar Daniel Imms (Tyriar) changed the title Fixes https://github.com/microsoft/vscode/issues/273177 Fix OOM crash on arm related to tree sitter powershell grammar Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VS Code crashes when chat suggests a powershell command

4 participants