[experiment] Migrate to Monaco Editor
Categories
(DevTools :: Netmonitor, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: Honza, Unassigned)
Details
The goal is replacing existing CodeMirror editor used to render HTTP responses (with color highlighting) by Monaco Editor and learn which editor is more suitable for DevTools.
Note that there are other panels (e.g. Console, Debugger, Style Editor) that would benefit from better alternative too.
https://github.com/Microsoft/monaco-editor
https://www.npmjs.com/package/monaco-editor
This experiment should answer some questions:
- Is Monaco good at a11y?
- Is Monaco's performance better?
- Does Monaco have some extra features DevTools would benefit from? (search, navigation, auto-completion, etc.)
- Does Monaco integrate with DevTools well (e.g. does it offer API we need, is it customizable enough?)
--
Some links to the code base:
- The Network panel implements SourceEditor (React component) that wraps CodeMirror editor
(it actually wraps "devtools/client/sourceeditor/editor" that is another wrapper for CodeMirror)
We could try to refactor this component and use Monaco instead.
- Here is the place where Network monitor is using the SourceEditor component for rendering responses.
There was already one experiment trying to replace CM in the Debugger panel. Could be good source of inspiration:
https://github.com/devtools-html/debugger.html/pull/6906/files
Honza
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #0)
The goal is replacing existing CodeMirror editor used to render HTTP responses (with color highlighting) by Monaco Editor and learn which editor is more suitable for DevTools.
Note that there are other panels (e.g. Console, Debugger, Style Editor) that would benefit from better alternative too.
https://github.com/Microsoft/monaco-editor
https://www.npmjs.com/package/monaco-editorThis experiment should answer some questions:
- Is Monaco good at a11y?
- Is Monaco's performance better?
- Does Monaco have some extra features DevTools would benefit from? (search, navigation, auto-completion, etc.)
- Does Monaco integrate with DevTools well (e.g. does it offer API we need, is it customizable enough?)
--
Some links to the code base:
- The Network panel implements SourceEditor (React component) that wraps CodeMirror editor
(it actually wraps "devtools/client/sourceeditor/editor" that is another wrapper for CodeMirror)
We could try to refactor this component and use Monaco instead.
- Here is the place where Network monitor is using the SourceEditor component for rendering responses.
There was already one experiment trying to replace CM in the Debugger panel. Could be good source of inspiration:
https://github.com/devtools-html/debugger.html/pull/6906/files
Honza
Hello, I am an Outreachy applicant looking to make my first contribution. Would this be ideal as my first bug? If so, I'd love to take on this responsibility. Thanks.
Reporter | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Hi Erik. I'm just checking if you are still interested in working on this bug. There hasn't been any activity here for some time. If you just need more time, that's fine. If you, however, are not planning on working on this bug anymore, let us know so it can be made available for others to pick up.
Updated•6 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•3 years ago
|
Description
•