-
Notifications
You must be signed in to change notification settings - Fork 365
Make editor commands extendable #1846
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
Make editor commands extendable #1846
Conversation
| '!suggestWidgetVisible && !findWidgetVisible' | ||
| ) | ||
|
|
||
| function keys<T>(object: T) { |
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.
Perhaps move this to the "objectUtils" file?
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.
Good call, missed that file
| this?.editor?.addCommand(key, () => { | ||
| command() | ||
| }) |
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.
| this?.editor?.addCommand(key, () => { | |
| command() | |
| }) | |
| this.editor?.addCommand(key, command) |
would avoid creating an extra function (if it works with the types)
* Make editor commands extendable * update arc version * fixes after review
* update driver * Fix unit tests * Fix version issues with new driver * don't show removed field in raw overview * update snapshots * fix urls for loading northwind data (#1831) * support connecting to cluster members missing default database (#1832) * support connecting to cluster members missing default database * Fix slow label data in 3.5 testing * 5.0.0 * Remove padding in viz details pane in arc To allow custom padding when overriding content. Removed PaneContainer since not used. * Fixed broken auto scroll of properties pane (#1836) Also made sure that if there are many labels on one node, that it is scrollable instead of just rendered out of sight. * Add missing space between `connected` and `to` in connection confirmation message. (#1837) * Fix issue with :server user list role when username is an email * Separate metadata count query (#1840) * Seperate metadata count query * Update styles * update snapshots * Update src/browser/modules/DBMSInfo/DBMSInfo.tsx Co-authored-by: Oskar Damkjaer <[email protected]> * Update src/shared/modules/dbMeta/dbMetaDuck.ts Co-authored-by: Oskar Damkjaer <[email protected]> * remove console.log * change name of function * fix spelling Co-authored-by: Oskar Damkjaer <[email protected]> * Composite db didn't show result graph (#1841) * fix composite db blank results * add e2e test for composite db * add 5.1 to e2e tests * fix e2e test * Add optional isExecutable prop to editor if using it in a context where the editor is just used for text input, for example editing a cypher query in a form. * chore(query): check is executable by onExecute prop instead also updated needle deps to match needle used in nx. * Add e2e for node details with lots of props * Test scroll in node properties overview * Make editor commands extendable (#1846) * Make editor commands extendable * update arc version * fixes after review * Add tab index to cypher editor (#1847) * Add tabIndex to cypherEditor props * update arc version * remove argument * update after review * bugfix incorrectly zooms when changing style of graph * make it possible to use Escape key to escape editor (#1849) * Make editor not scrollable (#1850) * make it possible to use Escape key to escape editor * fix scroll in edtior * this maybe fixes it * change comment * fix issue where zooming when expanding node * possible to change message text in copier also adjusted messages to be closer to copy icon to save space if there is shortage of space * update driver to 5.2.0 * update error message check * update test * update test again Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Stefano Ottolenghi <[email protected]> Co-authored-by: Noah Mayerhofer <[email protected]>
* update driver * Fix unit tests * Fix version issues with new driver * don't show removed field in raw overview * update snapshots * fix urls for loading northwind data (neo4j#1831) * support connecting to cluster members missing default database (neo4j#1832) * support connecting to cluster members missing default database * Fix slow label data in 3.5 testing * 5.0.0 * Remove padding in viz details pane in arc To allow custom padding when overriding content. Removed PaneContainer since not used. * Fixed broken auto scroll of properties pane (neo4j#1836) Also made sure that if there are many labels on one node, that it is scrollable instead of just rendered out of sight. * Add missing space between `connected` and `to` in connection confirmation message. (neo4j#1837) * Fix issue with :server user list role when username is an email * Separate metadata count query (neo4j#1840) * Seperate metadata count query * Update styles * update snapshots * Update src/browser/modules/DBMSInfo/DBMSInfo.tsx Co-authored-by: Oskar Damkjaer <[email protected]> * Update src/shared/modules/dbMeta/dbMetaDuck.ts Co-authored-by: Oskar Damkjaer <[email protected]> * remove console.log * change name of function * fix spelling Co-authored-by: Oskar Damkjaer <[email protected]> * Composite db didn't show result graph (neo4j#1841) * fix composite db blank results * add e2e test for composite db * add 5.1 to e2e tests * fix e2e test * Add optional isExecutable prop to editor if using it in a context where the editor is just used for text input, for example editing a cypher query in a form. * chore(query): check is executable by onExecute prop instead also updated needle deps to match needle used in nx. * Add e2e for node details with lots of props * Test scroll in node properties overview * Make editor commands extendable (neo4j#1846) * Make editor commands extendable * update arc version * fixes after review * Add tab index to cypher editor (neo4j#1847) * Add tabIndex to cypherEditor props * update arc version * remove argument * update after review * bugfix incorrectly zooms when changing style of graph * make it possible to use Escape key to escape editor (neo4j#1849) * Make editor not scrollable (neo4j#1850) * make it possible to use Escape key to escape editor * fix scroll in edtior * this maybe fixes it * change comment * fix issue where zooming when expanding node * possible to change message text in copier also adjusted messages to be closer to copy icon to save space if there is shortage of space * update driver to 5.2.0 * update error message check * update test * update test again Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Stefano Ottolenghi <[email protected]> Co-authored-by: Noah Mayerhofer <[email protected]>
* Make editor commands extendable * update arc version * fixes after review
* update driver * Fix unit tests * Fix version issues with new driver * don't show removed field in raw overview * update snapshots * fix urls for loading northwind data (neo4j#1831) * support connecting to cluster members missing default database (neo4j#1832) * support connecting to cluster members missing default database * Fix slow label data in 3.5 testing * 5.0.0 * Remove padding in viz details pane in arc To allow custom padding when overriding content. Removed PaneContainer since not used. * Fixed broken auto scroll of properties pane (neo4j#1836) Also made sure that if there are many labels on one node, that it is scrollable instead of just rendered out of sight. * Add missing space between `connected` and `to` in connection confirmation message. (neo4j#1837) * Fix issue with :server user list role when username is an email * Separate metadata count query (neo4j#1840) * Seperate metadata count query * Update styles * update snapshots * Update src/browser/modules/DBMSInfo/DBMSInfo.tsx Co-authored-by: Oskar Damkjaer <[email protected]> * Update src/shared/modules/dbMeta/dbMetaDuck.ts Co-authored-by: Oskar Damkjaer <[email protected]> * remove console.log * change name of function * fix spelling Co-authored-by: Oskar Damkjaer <[email protected]> * Composite db didn't show result graph (neo4j#1841) * fix composite db blank results * add e2e test for composite db * add 5.1 to e2e tests * fix e2e test * Add optional isExecutable prop to editor if using it in a context where the editor is just used for text input, for example editing a cypher query in a form. * chore(query): check is executable by onExecute prop instead also updated needle deps to match needle used in nx. * Add e2e for node details with lots of props * Test scroll in node properties overview * Make editor commands extendable (neo4j#1846) * Make editor commands extendable * update arc version * fixes after review * Add tab index to cypher editor (neo4j#1847) * Add tabIndex to cypherEditor props * update arc version * remove argument * update after review * bugfix incorrectly zooms when changing style of graph * make it possible to use Escape key to escape editor (neo4j#1849) * Make editor not scrollable (neo4j#1850) * make it possible to use Escape key to escape editor * fix scroll in edtior * this maybe fixes it * change comment * fix issue where zooming when expanding node * possible to change message text in copier also adjusted messages to be closer to copy icon to save space if there is shortage of space * update driver to 5.2.0 * update error message check * update test * update test again Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Stefano Ottolenghi <[email protected]> Co-authored-by: Noah Mayerhofer <[email protected]>
Removes the toggleFullscreen prop on the editor and makes commands from Monaco extendable. This way the escape key can be bound to anything.