fix: add polyfill for getDefaultHighWaterMark to support VS Code 1.85.x #6241
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes issue #6240 where the Roo Code extension fails to load on VS Code 1.85.x due to a missing Node.js API.
Problem
VS Code 1.85.x bundles Node.js 16.14.2, which doesn't include the
getDefaultHighWaterMarkfunction that was introduced in Node.js 16.7.0. Theexecadependency (v9.5.2+) uses this API, causing the extension to fail during activation with:Solution
Added a polyfill for
getDefaultHighWaterMarkat the very beginning ofextension.tsbefore any imports. The polyfill:Testing
Impact
This fix allows users on older VS Code versions (1.84.0 - 1.85.x) to continue using the Roo Code extension without upgrading VS Code.
Fixes #6240
Important
Adds a polyfill for
getDefaultHighWaterMarkinextension.tsto support VS Code 1.85.x, with tests inextension-polyfill.spec.ts.getDefaultHighWaterMarkinextension.tsto support VS Code 1.85.x using Node.js 16.14.2.extension-polyfill.spec.tsto verify polyfill behavior.This description was created by
for 61d0d15. You can customize this summary. It will automatically update as commits are pushed.