Skip to content

Update monaco to target lib es2024#292638

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/embarrassing-monkey
Feb 3, 2026
Merged

Update monaco to target lib es2024#292638
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/embarrassing-monkey

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Feb 3, 2026

Follow up on #271145

This aligns monaco with our main tsconfig target. Tries adopting findLastIndex to verify

Follow up on microsoft#271145

This aligns monaco with our main tsconfig target. Tries adopting `findLastIndex` to verify
Copilot AI review requested due to automatic review settings February 3, 2026 19:11
@mjbvz mjbvz enabled auto-merge February 3, 2026 19:12
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

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 aligns Monaco's TypeScript configuration with VS Code's main tsconfig by updating the target from ES2022 to ES2024, and verifies the change by adopting the native findLastIndex method in place of a custom implementation.

Changes:

  • Updated Monaco and vscode-dts TypeScript configurations to target ES2024
  • Replaced three usages of custom findLastIdx with native Array.prototype.findLastIndex as verification

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/tsconfig.monaco.json Updated TypeScript target from ES2022 to ES2024
src/tsconfig.vscode-dts.json Updated TypeScript lib from ES2022 to ES2024
src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.ts Replaced findLastIdx with native findLastIndex for finding the last changed notebook item
src/vs/workbench/contrib/debug/common/debugModel.ts Replaced findLastIdx with native findLastIndex for positioning debug sessions
src/vs/workbench/contrib/chat/common/widget/annotations.ts Replaced findLastIdx with native findLastIndex for locating previous chat content items

@mjbvz mjbvz merged commit d8e3c0d into microsoft:main Feb 3, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants