mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
Add persistence and connect dialog to Arc view (#11014)
* Add controller persistence and info prompting * more stuff * clean up * Add arc tests to scripts
This commit is contained in:
25
extensions/arc/src/ui/tree/refreshTreeNode.ts
Normal file
25
extensions/arc/src/ui/tree/refreshTreeNode.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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';
|
||||
import { refreshActionId } from '../../constants';
|
||||
|
||||
/**
|
||||
* A placeholder TreeNode to display when credentials weren't entered
|
||||
*/
|
||||
export class RefreshTreeNode extends TreeNode {
|
||||
|
||||
constructor(private _parent: TreeNode) {
|
||||
super(loc.refreshToEnterCredentials, vscode.TreeItemCollapsibleState.None, 'refresh');
|
||||
}
|
||||
|
||||
public command: vscode.Command = {
|
||||
command: refreshActionId,
|
||||
title: loc.refreshToEnterCredentials,
|
||||
arguments: [this._parent]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user