mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 01:25:38 -05:00
Add "No instances available" node for empty arc controllers (#12374)
This commit is contained in:
18
extensions/arc/src/ui/tree/noInstancesTreeNode.ts
Normal file
18
extensions/arc/src/ui/tree/noInstancesTreeNode.ts
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user