Commit Graph

3045 Commits

Author SHA1 Message Date
Charles Gagnon
2bef6d36b0 Consolidate INotebookEditOperation interfaces (#17944) 2021-12-17 14:21:52 -08:00
Alan Ren
d8467f2c1a null check before calling isDisposable (#17959) 2021-12-17 09:56:04 -08:00
Barbara Valdez
a267e957b0 Register undo redo command (#17948)
* register undo redo command
2021-12-16 11:35:22 -08:00
Alan Ren
4608a4714d Revert "table keyboard focus (#17903)" (#17946)
This reverts commit 177663cc29.
2021-12-15 20:48:58 -08:00
Alan Ren
970fe12e70 fix listener leaks (#17913)
* fix listener leaks

* add null check

* simplify

* pr comments
2021-12-14 13:35:00 -08:00
Charles Gagnon
be933c88c0 Update setting description product name (Code -> ADS) (#17912) 2021-12-14 10:59:40 -08:00
Alan Ren
177663cc29 table keyboard focus (#17903)
* fix table keyboard focus issue

* add comments

* pr comment

* pr comments
2021-12-13 13:00:27 -08:00
Charles Gagnon
2da29f17c2 Fix API docs for NotebookEditorEdit (#17902) 2021-12-13 10:16:00 -08:00
Alan Ren
381dd901cc fix table focus issue (#17895) 2021-12-10 19:08:49 -08:00
Alan Ren
b25cd177b0 update commandline handler (#17893)
* update commandline handler

* pr comments
2021-12-10 15:55:07 -08:00
Charles Gagnon
46fc807b69 Use standard key events for Notebook keybindings (#17880)
* Use standard key events for Notebook keybindings

* Add more
2021-12-09 11:05:07 -08:00
Barbara Valdez
772d0bea83 Fix split cell undo (#17845)
* fix split cell undo
2021-12-08 15:17:54 -08:00
Alan Ren
a9a8fec98a open database dashboard (#17871) 2021-12-08 14:52:50 -08:00
Charles Gagnon
ec417fae55 Cleanup link handler tests (#17838) 2021-12-07 18:28:31 -08:00
Charles Gagnon
321a5b8a69 Always clear unused attachments when updating cell source (#17840)
* Always clear unused attachments when updating cell source

* comment

* Fix eslint and improve regex

* Add more tests
2021-12-07 18:28:15 -08:00
Barbara Valdez
1651f3f8bc Add undo/redo to convert cells (#17835)
* add undo/redo to convert cells
2021-12-07 15:51:33 -08:00
Alan Ren
4ea6805d55 fix grid actionbar (#17837) 2021-12-07 11:56:11 -08:00
Lucy Zhang
969eb16df7 Wait for all notebook models to load before shutting down active sessions during python upgrade (#17766)
* handle undefined model

* wait for kernel to load before restart

* comment

* await editor model resolved

* remove cast
2021-12-03 16:39:07 -08:00
Barbara Valdez
8a205965d2 add telemetry to undo/redo at cell level (#17804)
* add telemetry to undo/redo at cell level

*add sendTelemetryActionEvent that sends telemetry from notebook model
2021-12-03 16:21:52 -08:00
Barbara Valdez
8b09ba8844 Implement undo/redo at cell level (#17744)
Implemented undo and redo for adding, deleting and moving cells.
2021-12-02 13:41:42 -08:00
Alan Ren
ba3e6343e8 dot not crash query editor (#17787) 2021-12-02 09:38:08 -08:00
Alan Ren
09c2e73f14 update dashboard taskbar separator (#17779) 2021-12-01 13:08:00 -08:00
Alan Ren
1006652a31 fix sorting bug (#17769)
* fix sorting bug

* comments
2021-11-30 17:11:57 -08:00
Chris LaFreniere
ce7935e7d2 Notebooks: Add Tooltips for Link/Image Buttons on Markdown Toolbar (#17763)
* Add title for tooltips

* Tweak tooltips
2021-11-30 12:40:06 -08:00
Lewis Sanchez
c073897056 Fixes ADS Web bug around copying user codes and opening a browser tab when adding an Azure Account. (#17760)
* Fixes bug around copying user codes and opening a browser tab.

* Code review changes

* Additional review changes.

* Unnecessary import removed
2021-11-30 10:37:56 -08:00
Cory Rivera
0149d9f051 Add additional notebook tests for handling relative links. (#17739) 2021-11-29 10:09:25 -08:00
Charles Gagnon
6ba7bad90c Fix language flavor change on connection when in sqlcmd mode (#17719)
* Fix language flavor change on connection when in sqlcmd mode

* comment + fix
2021-11-19 15:04:54 -08:00
Alan Ren
24b22f63d7 save password checkbox fix (#17718)
* save password checkbox fix

* remove code to reset the checkbox value
2021-11-19 13:35:35 -08:00
Charles Gagnon
77e4fdd407 Fix open external not working (#17717) 2021-11-19 11:25:23 -08:00
Charles Gagnon
8a6ea2669b Add additional properties to wizard page navigation events (#17716) 2021-11-19 10:18:13 -08:00
Alan Ren
3136ce1b4d input width in designer (#17714) 2021-11-19 10:12:47 -08:00
Cory Rivera
8e04d3992a Register additional editor overrides when adding new notebook file types (#17708)
* Also standardized file extension contributions to always start with a period, and to always do lower case string comparisons for file extensions.
2021-11-19 09:14:41 -08:00
Alexander Ivanov
a801388e1d Improve accessibility for wizard steps navigation (#17669)
Our extension is relying on the wizard dialog. During accessibility testing it was discovered that wizard step buttons are being reported as links by the screen reader (NVDA, JAWS). Claimed expected behavior by the tester is that they should be announced as buttons.

I discussed this issue with accessibility SMEs and they said it is perfectly fine to keep them as links. They did mention that they would probably design the UX differently from the start, but given that we already have it this way, links are fine. They did suggest to add few additional ARIA attributes to the link elements:

- `aria-current="step"` if the link is for the currently active step. This literally just announces "current step" at the end, when you focus on a link
- `aria-disabled="true"` makes it say "**unavailable**; link; *<step number>*" when in NVDA "browse" mode and move to the grayed-out link.

So this change implements the said improvements.
2021-11-18 15:34:52 -08:00
Alan Ren
7cb7157821 code refactoring (#17706) 2021-11-18 14:51:23 -08:00
Alan Ren
a273c54ebb properties pane improvements (#17700) 2021-11-18 10:41:12 -08:00
Alan Ren
7c26e14605 add foreign keys and constraints (#17697)
* foreign keys and constraints

* refactoring

* fix issues
2021-11-17 19:15:24 -08:00
Aditya Bist
2a127beb28 Designer: property descriptions (#17668)
* format

* added strings

* format doc

* use codicon instead

* show descriptions in property pane only

* fix ssdt string bug

* fix overflow option

* review comments

* review comments

* changes
2021-11-16 14:50:05 -08:00
Alexander Ivanov
1b83c4623d Respect ARIA label specified int he tree component options. (#17674)
During accessibility testing it was discovered that tree view in our wizard reads "Tree Node tree view" instead of the proper label that is specified. It turned out to be the problem with the tree component, where `ariaLabel` was hardcoded to "Tree Node", instead of the one provided in the options.

This change addresses the problem by passing through `ariaLabel` from the options object to the underlying tree control. I also removed the default `Tree Node` hardcoded label, as it didn't make much sense. This does mean that all tree-views that do not explicitly specify their aria-label will now get an empty label. I think this is better than having unrelated, unlocalized `Tree Node`.

I'm also worried about changes to the `ariaLabel` property after the component was initialized. I updated the code to propagate the value to the underlying tree view in the `setProperties` override of the tree component and hope that it will take care of it.
2021-11-16 09:15:45 -08:00
Alexander Ivanov
42b9f3b552 Provide aria-labels for node checkboxes in the tree view. (#17676)
During accessibility testing, it was discovered that screen reader does not announce what checkboxes in the tree view represent. It was merely announcing "checkbox unchecked", so it was not clear without visuals which checkbox the focus is on.

This change sets an `aria-label` of the checkbox elements to match the label of the owning tree node. This way the announcement becomes "My Node; checkbox; unchecked". This is fine as a quick solution to the problem, but in the future we may want to consider adding additional checkbox label property to the nodes exposed by the tree provider, so that each checkbox can announce additional information, if needed.
2021-11-16 08:13:18 -08:00
Alan Ren
1a9f2a5903 multi-level table support (#17638)
* multi-level table support

* comments

* address comments

* add period to end of sentence.
2021-11-10 17:15:08 -08:00
Maddy
6b226de450 refactor deltaDecorations logic (#17630) 2021-11-10 13:38:30 -08:00
Charles Gagnon
615df975ec Fix query editors restoring as plain text (#17643) 2021-11-10 12:31:43 -08:00
Alan Ren
6fb6f51295 fix dirty state of table designer (#17640)
* dirty state

* update original value on save
2021-11-10 11:39:53 -08:00
Maddy
1d3debb897 Maddy/edit mode events cleanup (#17636)
* remove multiple events

* correct preview check

* add test
2021-11-10 10:59:29 -08:00
Cory Rivera
329ea4103c Make various enhancements to Notebook Provider registration. (#17609)
* Use built-in SQL ExecuteProvider by default if no other provider exists.

* Gracefully handle case where standardKernels are not defined for a provider.

* Standardize on just using arrays for various provider registration details.
2021-11-09 16:00:34 -08:00
Alan Ren
c00c5e044b move the designer component to workbench layer (#17620) 2021-11-08 10:26:27 -08:00
Alan Ren
5f8e1f384f table designer editor icon (#17608)
* icon for table designer

* use more specific name

* use sql defined schema
2021-11-05 16:26:17 -07:00
Alan Ren
c9be45b9c7 feature flag for table designer (#17597) 2021-11-05 11:19:59 -07:00
Alan Ren
1fe3f38c14 separate title and name for table designer editor (#17600) 2021-11-05 11:09:17 -07:00
Alan Ren
f5b1e7feb8 a couple properties pane UI changes (#17601) 2021-11-05 11:08:43 -07:00