-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
monaco: upgrade @theia/monaco-editor-core
#12679
Comments
Unfortunately it does not seem like I will have the bandwidth to continue working on the upgrade. |
@rschnekenbu has expressed interest in performing the uplift 👍 Edit: do you mind commenting Remy so I can assign the issue to you? |
@vince-fugnitto, can you please assign me this ticket? |
Some changes which do not show up in compilation:
|
Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Investigating the trouble with the double instantiation of the |
I've prototyped an approach that would call this code from index.js:
The idea is to let not override with instances, but with "constructor functions". This should work fine as long as we don't have services we need to inject into the constructor function. Maybe we can annotate the constructor function? |
Correction, the above does not really work because "getCodeEditorService is not a constructor" from |
But this seems to work, complete with service injection:
|
Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
So the instantiation seems to work properly now. Next problem: the find/replace dialog layout is broken in the editor. |
Turns out we're mapping icon-id's to codicon ids: https://github.com/eclipse-theia/theia/pull/11527/files The problem is that |
@vince-fugnitto I have a couple of questions about the instructions in https://github.com/theia-ide/vscode/wiki/Publish-%60@theia-monaco-editor-core%60
what are |
Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
I've published |
So it turns out that tests fail with the upgraded monaco package. The reason is that we are running tests in nodejs, which cannot easily mix ESM and CJS modules. It seems this is not a problem in the webpacked front-end, but in nodejs, you cannot simply import a ESM module: so far, NodeJS simply loaded the modules from Monaco as CommonJS modules, which does not allow the
There are a couple of ways we could resolve this problem:
|
Correction: removing the |
Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Fixes #12679 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Feature Description:
The issue tracks the upgrade of
@theia/monaco-editor-core
which pulls a newer version of the monaco-editor built from theia-ide/vscode. The current version of monaco matches1.72.3
while our supported API is currently at1.78.0
and soon to be1.79.0
.I propose we use the latest tagged release of VS Code and benefit from monaco updates, UI/UX improvements and increased compatibility.
Steps
@theia/monaco-editor-core
Documentation
Information related to performing the monaco uplift:
The text was updated successfully, but these errors were encountered: