Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Apr 3, 2025

Description

Add Monaco Editor Migration Guide

Partial Issues Resolved

#9642

Changelog

  • doc: Add Monaco Editor Migration Guide

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Partial Issue Resolved:
opensearch-project#9642

Signed-off-by: Anan Zhuang <[email protected]>
angle943
angle943 previously approved these changes Apr 3, 2025
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)
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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.
Copy link
Member

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.

Copy link
Member Author

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.
Copy link
Member

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?

Copy link
Member Author

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants