Compare commits
2 commits
main
...
alex/v0.0.
Author | SHA1 | Date | |
---|---|---|---|
|
9904dd9fcb | ||
|
c8ec8b6a63 |
4 changed files with 16 additions and 2 deletions
|
@ -4,6 +4,11 @@ All notable changes to the "vscode-appwrite" extension will be documented in thi
|
||||||
|
|
||||||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
||||||
|
|
||||||
|
## [0.0.3] - 2021-4-30
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Errors when user has no projects
|
||||||
|
|
||||||
## [0.0.2] - 2021-4-30
|
## [0.0.2] - 2021-4-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "vscode-appwrite",
|
"name": "vscode-appwrite",
|
||||||
"displayName": "Appwrite",
|
"displayName": "Appwrite",
|
||||||
"description": "Manage your Appwrite resources right from VS Code!",
|
"description": "Manage your Appwrite resources right from VS Code!",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.55.0"
|
"vscode": "^1.55.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,6 +32,11 @@ export class HealthTreeItemProvider implements vscode.TreeDataProvider<vscode.Tr
|
||||||
}
|
}
|
||||||
|
|
||||||
async getChildren(element?: HealthTreeItem): Promise<vscode.TreeItem[]> {
|
async getChildren(element?: HealthTreeItem): Promise<vscode.TreeItem[]> {
|
||||||
|
|
||||||
|
if (healthClient === undefined) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
// get children for root
|
// get children for root
|
||||||
if (element === undefined) {
|
if (element === undefined) {
|
||||||
const health = await healthClient.checkup();
|
const health = await healthClient.checkup();
|
||||||
|
|
|
@ -20,9 +20,13 @@ export class StorageTreeItemProvider implements vscode.TreeDataProvider<vscode.T
|
||||||
}
|
}
|
||||||
|
|
||||||
async getChildren(element?: vscode.TreeItem): Promise<vscode.TreeItem[]> {
|
async getChildren(element?: vscode.TreeItem): Promise<vscode.TreeItem[]> {
|
||||||
|
if (storageClient === undefined) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
const files = await storageClient.listFiles();
|
const files = await storageClient.listFiles();
|
||||||
if (files === undefined || files?.files.length === 0) {
|
if (files === undefined || files?.files.length === 0) {
|
||||||
const noStorage = new vscode.TreeItem('No files found');
|
const noStorage = new vscode.TreeItem("No files found");
|
||||||
return [noStorage];
|
return [noStorage];
|
||||||
}
|
}
|
||||||
return files.files.map((file) => new FileTreeItem(file));
|
return files.files.map((file) => new FileTreeItem(file));
|
||||||
|
|
Loading…
Reference in a new issue