-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
editor: update monaco editor preferences #9852
Conversation
The commit updates the editor preferences following the monaco upgrade which were incomplete and did not include the proper descriptions. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
The changes look reasonable to me - maybe 'context menu' should be two words - but I think this raises the question of whether we want to consider all of these things to be preferences. We currently populate the options of editors from the editor preferences, but many of these are not VSCode preferences, and seem more like application-level implementation decisions than user preferences. I would be inclined to create something like a |
@colin-grant-work I completely agree, I don't think these are end-user preferences, and are only editor options for developers creating monaco-editors:
|
@vince-fugnitto I agree some of the preferences are for the programmer, not the user. But some like 'diffEditor.wordWrap' make sense to me for a user to set. @vince-fugnitto could you open an issue detailing the preferences that should really be options? |
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.
As for this PR: it still makes the code better
+ 1
to merge the current changes, tested according to the How to test
section - works well!
I would be inclined to create something like a getMonacoEditorOptions() method that merges some object full of defaults with settings exposed to the user. That way, the relative contribution of each can be changed by adopters by adding more preferences, but we're not exposing a bunch of Monaco internals by default.
Sounds good to me! 👍
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.
In case anyone was still waiting for my vote, I agree with @tsmaeder and @RomanNikitenko that providing text is good, regardless of what we do next.
What it does
The pull-request updates the
editor-preferences
following the monaco-upgrade which were incomplete and did not include the properdescriptions
leading to end-users not having the full information in the ui (preferences-view) and in the auto-completion of thesettings.json
.Note: a lot of these new preferences following the upgrade are not available in vscode and are pretty internal to the application when creating the monaco-editor with the different editor-options, and I'm not sure should be exposed to end-users.
How to test
settings.json
that the there is auto-completion descriptions available.Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com