-
Notifications
You must be signed in to change notification settings - Fork 991
Add Monaco Editor Migration Guide #9654
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
base: main
Are you sure you want to change the base?
Conversation
Partial Issue Resolved: opensearch-project#9642 Signed-off-by: Anan Zhuang <[email protected]>
docs/_sidebar.md
Outdated
@@ -189,6 +189,7 @@ | |||
- scripts | |||
- [README](../scripts/README.md) | |||
- [DOCS_README](DOCS_README.md) | |||
- [Monaco editor migration guide](monaco-editor-migration-guide.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we consider creating a packages
folder similar to the plugins
folder? i think the root level of the docs folder might filling up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point! I will update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this be converted into snake case to match the other file casing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad. will change.
@@ -0,0 +1,279 @@ | |||
# Monaco Editor Migration Guide | |||
|
|||
This document provides detailed information about the API changes between monaco-editor 0.17.0 and 0.52.0, and offers guidance for plugin developers who need to adapt to these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit picky: would it make sense if match the consistency in the in saying CodeEditor
and monaco-editor
. Like we pick either Monaco Editor
and Code Editor
or code-editor
monaco-editor
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will check and update
|
||
## Best Practices | ||
|
||
1. **Use the CodeEditor Component**: Whenever possible, use the CodeEditor component provided by OpenSearch Dashboards rather than directly using monaco-editor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100% agree to this be i think the code editor's readme is a little bit buried. should we add another section giving a quick explanation of the code editor. It's purposes, how a plugin can use it, and the benefits of using it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add a new section
Signed-off-by: Anan Zhuang <[email protected]>
Description
Add Monaco Editor Migration Guide
Partial Issues Resolved
#9642
Changelog
Check List
yarn test:jest
yarn test:jest_integration