Adding `Copy Unique Name` command to the Solution context menu (#151)

* Adding `Copy Unique Name` to solution context menu
This commit is contained in:
Crash Collison 2022-01-25 10:17:01 -08:00 коммит произвёл GitHub
Родитель 861d84041d
Коммит 54cda378ab
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
16 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@ -91,6 +91,9 @@ The second line should be '[TRANSLATION HERE](command:pacCLI.pacAuthHelp)', keep
<trans-unit id="pacCLI.envAndSolutionsPanel.copyFriendlyName.title">
<source xml:lang="en">Copy Friendly Name</source>
</trans-unit>
<trans-unit id="pacCLI.envAndSolutionsPanel.copyUniqueName.title">
<source xml:lang="en">Copy Unique Name</source>
</trans-unit>
<trans-unit id="pacCLI.envAndSolutionsPanel.copyVersionNumber.title">
<source xml:lang="en">Copy Version Number</source>
</trans-unit>

Просмотреть файл

@ -165,6 +165,10 @@
"command": "pacCLI.envAndSolutionsPanel.copyFriendlyName",
"title": "%pacCLI.envAndSolutionsPanel.copyFriendlyName.title%"
},
{
"command": "pacCLI.envAndSolutionsPanel.copyUniqueName",
"title": "%pacCLI.envAndSolutionsPanel.copyUniqueName.title%"
},
{
"command": "pacCLI.envAndSolutionsPanel.copyVersionNumber",
"title": "%pacCLI.envAndSolutionsPanel.copyVersionNumber.title%"
@ -257,6 +261,10 @@
"command": "pacCLI.envAndSolutionsPanel.copyFriendlyName",
"when": "never"
},
{
"command": "pacCLI.envAndSolutionsPanel.copyUniqueName",
"when": "never"
},
{
"command": "pacCLI.envAndSolutionsPanel.copyVersionNumber",
"when": "never"
@ -351,6 +359,10 @@
"command": "pacCLI.envAndSolutionsPanel.copyFriendlyName",
"when": "view == pacCLI.envAndSolutionsPanel && viewItem == SOLUTION"
},
{
"command": "pacCLI.envAndSolutionsPanel.copyUniqueName",
"when": "view == pacCLI.envAndSolutionsPanel && viewItem == SOLUTION"
},
{
"command": "pacCLI.envAndSolutionsPanel.copyVersionNumber",
"when": "view == pacCLI.envAndSolutionsPanel && viewItem == SOLUTION"

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "Portál PowerApps -> Zobrazit náhled"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps-Portal -> Vorschauversion anzeigen"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "Portal de PowerApps -> Mostrar vista previa"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "Portail PowerApps -> Afficher la version préliminaire"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "Portale PowerApps -> Mostra anteprima"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps ポータル -> プレビューの表示"
}

Просмотреть файл

@ -43,6 +43,7 @@
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps Portal -> Show preview"

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps 포털 -> 프리뷰 보기"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "Portal do PowerApps -> Mostrar versão preliminar"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "Портал PowerApps -> Показать предварительную версию"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps Portal -> Önizlemeyi göster"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps 门户 -> 显示预览版"
}

Просмотреть файл

@ -27,6 +27,7 @@
"pacCLI.envAndSolutionsPanel.copyEnvironmentUrl.title": "Copy Environment Url",
"pacCLI.envAndSolutionsPanel.copyOrganizationId.title": "Copy Organization Id",
"pacCLI.envAndSolutionsPanel.copyFriendlyName.title": "Copy Friendly Name",
"pacCLI.envAndSolutionsPanel.copyUniqueName.title": "Copy Unique Name",
"pacCLI.envAndSolutionsPanel.copyVersionNumber.title": "Copy Version Number",
"microsoft-powerapps-portals.preview-show.title": "PowerApps 入口網站 -> 顯示預覽"
}

Просмотреть файл

@ -104,6 +104,9 @@ export function RegisterPanels(pacWrapper: PacWrapper): vscode.Disposable[] {
vscode.commands.registerCommand("pacCLI.envAndSolutionsPanel.copyFriendlyName", (item: EnvOrSolutionTreeItem) => {
vscode.env.clipboard.writeText((item.model as SolutionListing).FriendlyName);
}),
vscode.commands.registerCommand("pacCLI.envAndSolutionsPanel.copyUniqueName", (item: EnvOrSolutionTreeItem) => {
vscode.env.clipboard.writeText((item.model as SolutionListing).SolutionUniqueName);
}),
vscode.commands.registerCommand("pacCLI.envAndSolutionsPanel.copyVersionNumber", (item: EnvOrSolutionTreeItem) => {
vscode.env.clipboard.writeText((item.model as SolutionListing).VersionNumber);
}));