-
Notifications
You must be signed in to change notification settings - Fork 911
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
Column/Table Drag & Drop #10702
Column/Table Drag & Drop #10702
Conversation
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.
Let's bring all the changes to the sql
side of things and change the server explorer tree instead of the whole tree implementation. I left a comment on how you could do this, if you need help, feel free to ping me.
src/sql/workbench/services/objectExplorer/browser/dragAndDropController.ts
Outdated
Show resolved
Hide resolved
Sync'd offline and changes might be right, will investigate and get back in day. |
src/sql/workbench/services/objectExplorer/browser/treeCreationUtils.ts
Outdated
Show resolved
Hide resolved
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 looks much cleaner! (wait for all the checks to pass first)
agreed, although it looks like I may need to add a test so the code coverage doesn't decrease |
src/sql/workbench/services/objectExplorer/browser/dragAndDropController.ts
Outdated
Show resolved
Hide resolved
TreeUpdateUtils.isInDragAndDrop = true; | ||
const data = dragAndDropData.getData(); | ||
const element = data[0]; | ||
if (element.nodeTypeId === 'Column' || element.nodeTypeId === 'Table') { |
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.
i see you're referencing this in two parts of the code, would it make sense for this to be an enum? Or some sort of helper method
* able to drag objects from left pane * changed scheme from file * base functionality working * extended functionality to tables * added string literals and formatting * cleanup * cleanup * added table/column parsing * removed bad logic * updated to use metadata * cleanup and added sql carbon edit tags * moved changes from vs into sql code base * refactoring drag and drop * cleanup * cleanup * cleanup * added unit tests * pr changes * moved treeMock file * fixed small bug
This PR introduces the base functionality for drag/drop in ADS. The purpose of this PR is to get some technical feedback on the implementation of this feature and suggestions on how I can improve it (I wanted to do this before I got too far along in the development).
Here is my current TODO list:
add parsing for the column label so it is correctly formattedAdd SQL Carbon Edit tags in the VS Code changesFuture enhancements (not meant to be included in this PR):
This PR fixes #3630