Skip to content

Commit 0a0c56e

Browse files
committed
Mark unreachable isfs root in Explorer tree
1 parent 88b258b commit 0a0c56e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/providers/FileSystemProvider/FileSystemProvider.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,12 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
295295
private async _lookup(uri: vscode.Uri): Promise<Entry> {
296296
if (uri.path === "/") {
297297
const api = new AtelierAPI(uri);
298-
if (!api.active) {
299-
throw vscode.FileSystemError.Unavailable(`${uri.toString()} is unavailable`);
300-
}
298+
await api
299+
.serverInfo()
300+
.then()
301+
.catch(() => {
302+
throw vscode.FileSystemError.Unavailable(`${uri.toString()} is unavailable`);
303+
});
301304
}
302305
const parts = uri.path.split("/");
303306
let entry: Entry = this.root;

0 commit comments

Comments
 (0)