-
Notifications
You must be signed in to change notification settings - Fork 20
Copy-and-Paste 2: Basic copy and paste task #147
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
Merged
tnaum-ms
merged 26 commits into
feature/copy-and-paste
from
dev/xingfan/111-copy-and-paste-2-implement-basic-copy-and-paste-task
Aug 13, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
52a7720
added copy/paste commands to package.json
tnaum-ms 59a970b
Merge branch 'feature/copy-and-paste' into dev/xingfan/111-copy-and-p…
tnaum-ms 33f7d40
feat: basic copy+paste UX for experimenting
tnaum-ms aca6916
fix: updated eslint config to exclude the `api/dist` folder
tnaum-ms eab7593
Apply suggestions from code review
tnaum-ms 30d5a72
Merge branch 'copilot/fix-130' of https://github.com/microsoft/vscode…
xingfan-git a4df3f6
Merge branch 'next' of https://github.com/microsoft/vscode-documentdb…
xingfan-git 52eec8d
draft copy paste task
xingfan-git 3a737fb
Revert "draft copy paste task"
xingfan-git 1e76085
merge feature/copy-and-paste branch to pull changes for task progress
xingfan-git 95ee9da
draft version for copy paste collection task
xingfan-git fbf169a
refine insert result parsing
xingfan-git c1e8552
two strategies
xingfan-git b721aaf
l10n
xingfan-git 2458adc
overwrite
xingfan-git 1f4c942
Merge branch 'feature/copy-and-paste' into dev/xingfan/111-copy-and-p…
tnaum-ms d8eff8d
Updated copy-paste-task, minor changes + update to final state reporting
tnaum-ms 21b409b
l10n updates
tnaum-ms 96a841c
feat: centralized task status udpates in the outputChannel
tnaum-ms a955b24
refreshed Copy-Paste task implememtation for readability
tnaum-ms 7582e3b
ux tweak / emojii...
tnaum-ms 3037998
refactoring file locations
tnaum-ms cd7983d
finalized refactoring
tnaum-ms e567242
removed obsolete code / commented out code.
tnaum-ms 884116d
tweak to the copy-and-paste task display name
tnaum-ms 85c31a4
fix: updated taskService tests to ignore ext.outputChannel.appendLine…
tnaum-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Microsoft Corporation. All rights reserved. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import { type IActionContext } from '@microsoft/vscode-azext-utils'; | ||
| import * as vscode from 'vscode'; | ||
| import { ext } from '../../extensionVariables'; | ||
| import { type CollectionItem } from '../../tree/documentdb/CollectionItem'; | ||
|
|
||
| export async function copyCollection(_context: IActionContext, node: CollectionItem): Promise<void> { | ||
| if (!node) { | ||
| throw new Error(vscode.l10n.t('No node selected.')); | ||
|
tnaum-ms marked this conversation as resolved.
|
||
| } | ||
| // Store the node in extension variables | ||
| ext.copiedCollectionNode = node; | ||
|
|
||
| // Show confirmation message | ||
| const collectionName = node.collectionInfo.name; | ||
| const databaseName = node.databaseInfo.name; | ||
|
|
||
| void vscode.window.showInformationMessage( | ||
| vscode.l10n.t('Collection "{0}" from database "{1}" has been marked for copy.', collectionName, databaseName), | ||
| ); | ||
| } | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.