-
Notifications
You must be signed in to change notification settings - Fork 616
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
CONSOLE-4407: Update monaco and YAML language server #14663
base: master
Are you sure you want to change the base?
Conversation
@logonoff: This pull request references CONSOLE-4407 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
3b9e426
to
03796ad
Compare
debt, adding labels /label px-approved |
/retest |
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.
@logonoff Nice work!
Do we know if this impacts any public plugin APIs? It looks like we do expose Monaco options in the CodeEditor SDK component:
import { openAPItoJSONSchema } from '@console/internal/module/k8s/openapi-to-json-schema'; | ||
import { getSwaggerDefinitions } from '@console/internal/module/k8s/swagger'; | ||
|
||
export const defaultEditorOptions = { readOnly: false, scrollBeyondLastLine: false }; | ||
|
||
const MODEL_URI = 'inmemory://model.yaml'; |
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.
Love seeing all of this code removed
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.
Hey! Yeah, it would likely impact plugins since the monaco API has changed a bit between versions. I've also changed how the ref object is stored in memory, I'll try making the ref backwards-compatible and will push a change if successful
And it looks like we expose the editor ref itself, so if there are breaking changes to the Monaco API, it can affect plugins. I think we have to bite the bullet if there are since not ever upgrading Monaco is not an option. We'll need to minimally release note this change, however. |
6c6d8c8
to
92b628b
Compare
92b628b
to
e832153
Compare
QE review: /assign @yapei |
e832153
to
a50c157
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: logonoff The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Remove `umd-compat-loader`
a50c157
to
8e2d1e0
Compare
@logonoff: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
CONSOLE Features and Fixes:
https://issues.redhat.com/browse/CONSOLE-4407
Solution description
This PR lays the foundation for switching to the PatternFly Code editor by doing the following:
Screen shots / gifs / design review:
Before:
After: