Fix broken CMS commands (#5296)

This commit is contained in:
Charles Gagnon
2019-05-01 10:55:58 -07:00
committed by GitHub
parent 64bf211a45
commit 80da7ad496
5 changed files with 12 additions and 12 deletions

View File

@@ -273,7 +273,7 @@ export class ApiWrapper {
if (connection && connection.options) {
if (connection.options.server === parentServerName) {
// error out for same server registration
let errorText = localize('cms.errors.sameServerUnderCMS', 'You cannot add a shared registered server with the same name as the Configuration Server');
let errorText = localize('cms.errors.sameServerUnderCms', 'You cannot add a shared registered server with the same name as the Configuration Server');
this.showErrorMessage(errorText);
return;
} else {

View File

@@ -22,7 +22,7 @@ export class CmsResourceEmptyTreeNode extends TreeNode {
let item = new TreeItem(CmsResourceEmptyTreeNode.addCmsServerLabel, TreeItemCollapsibleState.None);
item.command = {
title: CmsResourceEmptyTreeNode.addCmsServerLabel,
command: 'cms.resource.registerCMSServer',
command: 'cms.resource.registerCmsServer',
arguments: [this]
};
item.contextValue = CmsResourceItemType.cmsEmptyNodeContainer;
@@ -47,5 +47,5 @@ export class CmsResourceEmptyTreeNode extends TreeNode {
return 'message_cmsTreeNode';
}
private static readonly addCmsServerLabel = localize('cms.resource.tree.CMSTreeNode.addCmsServerLabel', 'Add Central Management Server...');
private static readonly addCmsServerLabel = localize('cms.resource.tree.CmsTreeNode.addCmsServerLabel', 'Add Central Management Server...');
}

View File

@@ -27,7 +27,7 @@ describe('CmsResourceEmptyTreeNode.info', function(): void {
should(treeItem.collapsibleState).equal(vscode.TreeItemCollapsibleState.None);
should(treeItem.command).not.undefined();
should(treeItem.command.title).equal(label);
should(treeItem.command.command).equal('cms.resource.registerCMSServer');
should(treeItem.command.command).equal('cms.resource.registerCmsServer');
const nodeInfo = treeNode.getNodeInfo();
should(nodeInfo.isLeaf).true();