mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25:37 -05:00
Fix broken CMS commands (#5296)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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...');
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user