-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix kernel shortcuts, add migration, fix defaults population #15639
Conversation
Thanks for making a pull request to jupyterlab! |
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.
Thanks @krassowski, I only have some comments below, otherwise it looks good to me.
); | ||
} | ||
|
||
return result; | ||
} else if (schema.type === 'array') { | ||
const defaultUndefined = typeof schema.default !== 'undefined'; |
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.
For consistency, shouldn't it be defaultDefined
?
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.
Absolutely, good catch - thanks!
console.warn( | ||
'Deprecated shortcut selectors: ' + | ||
[...selectorDeprecationWarnings].concat('\n') + | ||
'\n\nThe selectors will be substituted transparently this time, but need to be updated at source before next major release.' | ||
); |
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.
It should be nice to have a way to warn only once, when all the plugins are loaded.
This is not for this PR, but having a way to concatenate all messages from plugin loading should be nice, to avoid duplication.
For example, if we restore only one selector from plugin.json
, we receive 16 warnings in the console.
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.
Indeed. We could use some global variable in Private
to de-duplicate; let me take a look.
c02e34c
to
ba0efa8
Compare
Thanks @krassowski |
References
Code changes
winKeys
,linuxKeys
andmacKeys
incorrectly popping up in defaults and leading to corruption of shortcuts, which fixes configuring shortcuts and user shortcuts being incorrectly populatedUser-facing changes
JSON setting editor defaults now show up correctly
Shortcuts (optional linux/mac/win keys no longer incorrectly shown as objects)
Context menu
HTML sanitizer
Backwards-incompatible changes
None