mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
26 lines
920 B
TypeScript
26 lines
920 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* 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, '');
|
|
}
|
|
|
|
public command: vscode.Command = {
|
|
command: refreshActionId,
|
|
title: loc.refreshToEnterCredentials,
|
|
arguments: [this._parent]
|
|
};
|
|
}
|