Skip to content

Conversation

@colin-grant-work
Copy link
Contributor

@colin-grant-work colin-grant-work commented Jun 23, 2022

What it does

Uplifts @theia/monaco-editor-core to the state of [email protected] and makes a few adjustments. In particular, it updates the vscode-textmate dependency to 7.0.1 to match VSCode in order to provide the accustomed theme experience, and it replaces onigasm with vscode-oniguruma for the same reason. The former change required some reorganization of code to account for breaking changes in vscode-textmate.

How to test

  1. Test your accustomed workflows in the application and make sure they're still working.
  2. Test bracket pair colorization in various languages.

Review checklist

Reminder for reviewers

@colin-grant-work colin-grant-work added monaco issues related to monaco dependencies pull requests that update a dependency file labels Jun 23, 2022
@colin-grant-work colin-grant-work marked this pull request as ready for review June 23, 2022 21:57
@msujew msujew self-requested a review June 24, 2022 11:40
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

I confirmed that functionality the changes work well 👍

  • syntax highlighting (verified js, ts, tsx, json, css, html)
  • quick-open menus
  • outline-view and breadcrumbs
  • peek widgets
  • debug console
  • problem markers are supported
  • preferences schemas and validation work
  • autoSave works

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

LGTM 👍
When ready I can perform the official release of @theia/monaco-editor-core (non alpha).

"onigasm": "^2.2.0",
"vscode-textmate": "^4.4.0"
"vscode-oniguruma": "1.6.1",
"vscode-textmate": "^7.0.1"
Copy link
Member

Choose a reason for hiding this comment

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

This will be a nice improvement, with the upgrade we can make use of a timeLimit when tokenizing so we ensure that we do not hang the UI on large tokenizations, and we can adjust our code to not tokenize if a line is too long 👍

Copy link
Member

Choose a reason for hiding this comment

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

@vince-fugnitto Is this related to the issue brought up in #11391?

Copy link
Member

Choose a reason for hiding this comment

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

@vince-fugnitto Is this related to the issue brought up in #11391?

Exactly :) I had investigated a little and noticed it was tokenization causing the problem.

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Looks good to me as well 👍

  • I couldn't see any regressions with your changes
  • The new bracket highlighting works as expected (as in vscode)

@colin-grant-work colin-grant-work merged commit 69a4daf into eclipse-theia:master Jul 12, 2022
@colin-grant-work colin-grant-work deleted the monaco/uplift-1.67 branch July 12, 2022 23:46
@colin-grant-work colin-grant-work added this to the 1.28.0 milestone Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies pull requests that update a dependency file monaco issues related to monaco

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants