Repository navigation
#19 Add Ctrl/Cmd+S save shortcut in Monaco code editors - #72
Open
cherepanov wants to merge 12 commits into
Open
cherepanov wants to merge 12 commits into
cherepanov wants to merge 12 commits into
Conversation
Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
…nd hotkeys={false}
Skip the save chord when onSave is omitted or hotkeys are disabled, and bind KeyMod via stable enum values so empty onMount monaco stubs no longer crash autoformat tests.
Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
…cmd+s-save-shortcut-in-monaco-code-editors Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
…monaco-code-editors Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
…alue, JsonView Ctrl/Cmd+S Prevent uncaught SyntaxError from Code Action compile, validate the Monaco value on save instead of stale React state, and wire Edit JSON modal Ctrl/Cmd+S to apply the form without closing bottom-panel editors. Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
3 tasks done
…monaco-code-editors Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
eslint react-hooks/refs forbids updating compileSourceRef in the props reset path; keep save-time sync so Monaco values still validate correctly. Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
Co-authored-by: Alexey Cherepanov <a@cherepanov.info>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Monaco Ctrl/Cmd+S script save when FormBuilder hotkeys are enabled, documents the chord vs form Save /
hotkeys={false}, and hardens save paths found in soak testing:CalculableResult.errorinstead of throwing on invalid syntaxCloses #19.
Packages affected
@react-form-builder/designertests/(module + component + browser)Checklist
npm run check-alllocally (or explain why not) — ran focused gates instead: module hotkey specs,generic-code-editor-save, Chromiumcode-editor-save-hotkeytests/when appropriatedocumentation/docsfor user-facing changesBreaking changes / migration
None. Hosts that pass
hotkeys={false}keep owning Ctrl/Cmd+S. Remapping formsaveviahotkeys.bindingsdoes not disable the Monaco script-save chord.