We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b258b commit 0a0c56eCopy full SHA for 0a0c56e
src/providers/FileSystemProvider/FileSystemProvider.ts
@@ -295,9 +295,12 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
295
private async _lookup(uri: vscode.Uri): Promise<Entry> {
296
if (uri.path === "/") {
297
const api = new AtelierAPI(uri);
298
- if (!api.active) {
299
- throw vscode.FileSystemError.Unavailable(`${uri.toString()} is unavailable`);
300
- }
+ await api
+ .serverInfo()
+ .then()
301
+ .catch(() => {
302
+ throw vscode.FileSystemError.Unavailable(`${uri.toString()} is unavailable`);
303
+ });
304
}
305
const parts = uri.path.split("/");
306
let entry: Entry = this.root;
0 commit comments