Uh oh!
There was an error while loading. Please reload this page.
Replace ace with monaco editor (Closes #571) - #1800
Conversation
Uh oh!
There was an error while loading. Please reload this page.
| this.logger = logger.fork('Widget'); | ||
| MonacoLanguages = JSON.parse(MonacoLanguages); | ||
| const DEFAULT_THEMES = ['vs-dark', 'vs', 'hc-black']; | ||
| const DEFAULT_COLORS = { |
There was a problem hiding this comment.
It looks like this can be removed.
There was a problem hiding this comment.
Due to the lack of submenu support and already exsiting context menu. My plan was to add a separate button. This which opens the existing contextmenu. These colors were used in #1746 for the button in the context menu.
Uh oh!
There was an error while loading. Please reload this page.
| TextEditorWidget = function (logger, container, config={}) { | ||
| this.logger = logger.fork('Widget'); | ||
| MonacoLanguages = JSON.parse(MonacoLanguages); | ||
| const DEFAULT_THEMES = ['vs-dark', 'vs', 'hc-black']; |
There was a problem hiding this comment.
It might be nice to have a couple more themes available. Maybe 5 or 6?
There was a problem hiding this comment.
https://github.com/brijeshb42/monaco-themes. Similar to #1800 (comment). Which would be the best course?
umesh-timalsina
commented
Aug 11, 2020
brollb
commented
Aug 12, 2020
Can you share the raw text before it is rendered? |
umesh-timalsina
commented
Aug 12, 2020
The raw text is the following: |
brollb
commented
Aug 13, 2020
Ah, I see. The first one is using underlines and other SGR parameters; it currently only supports colors and expected there to be only two options. This should be pretty easy fix but could be fixed in it's own PR. |
…-monaco-text-editor
I am marking this active. There is one issue left to sortout: Somehow, 2 editor workers are being assingned when viewing stdout in Also, following issues will stem and should be addressed after this is merged:
|
brollb
commented
Sep 16, 2020
brollb
left a comment
There was a problem hiding this comment.
Looks good! If you can remove the console.log, it should be good to go!
Uh oh!
There was an error while loading. Please reload this page.
umesh-timalsina
commented
Sep 16, 2020
This PR only is part one of the two needed to close #571. This Introduces Monaco Text Editor, which has support for a language server protocol. |




Checklist:
Apply Basic Changes to panels
LogViewerOperationCodeEditorOperationDepEditorTabbedTextEditorSerializeEditorAdd Support for different themes, via contextmenu
Add support for keybindings (Currently, Only VIM is supported, Emacs can be added on a later PR/issue)