Add "No instances available" node for empty arc controllers (#12374)

This commit is contained in:
Charles Gagnon
2020-09-16 16:25:41 -07:00
committed by GitHub
parent 8b9103208d
commit 0cd242cd0c
4 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import * as loc from '../../localizedConstants';
import { TreeNode } from './treeNode';
/**
* A placeholder TreeNode to display when there aren't any child instances available
*/
export class NoInstancesTreeNode extends TreeNode {
constructor() {
super(loc.noInstancesAvailable, vscode.TreeItemCollapsibleState.None, 'noInstances');
}
}