mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
Add No Resources Found label under azure browse (#22660)
* Add No Resources Found label under azure browse * update localize message * add period
This commit is contained in:
@@ -21,6 +21,7 @@ import { AzureResourceService } from '../resourceService';
|
||||
import { AzureResourceResourceTreeNode } from '../resourceTreeNode';
|
||||
import { AzureResourceErrorMessageUtil } from '../utils';
|
||||
import { Logger } from '../../utils/Logger';
|
||||
import { AzureResourceMessageTreeNode } from '../messageTreeNode';
|
||||
|
||||
export class FlatAccountTreeNode extends AzureResourceContainerTreeNodeBase {
|
||||
public constructor(
|
||||
@@ -220,6 +221,10 @@ class FlatAccountTreeNodeLoader {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Create "No Resources Found" message node if no resources found under azure account.
|
||||
if (this._nodes.length === 0) {
|
||||
this._nodes.push(AzureResourceMessageTreeNode.create(localize('azure.resource.flatAccountTreeNode.noResourcesLabel', "No Resources found."), this._accountNode))
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof AzureSubscriptionError) {
|
||||
void vscode.commands.executeCommand('azure.resource.signin');
|
||||
|
||||
Reference in New Issue
Block a user