Skip to content

Commit f144746

Browse files
committed
More cleanup
1 parent 9007697 commit f144746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/FileSystemPovider/FileSystemProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
210210
if (uri.path.startsWith("/.")) {
211211
throw vscode.FileSystemError.NoPermissions("dot-folders not supported by server");
212212
}
213-
const api = new AtelierAPI(uri);
214213
const { query } = url.parse(decodeURIComponent(uri.toString()), true);
215214
const csp = query.csp === "" || query.csp === "1";
216215
const fileName = csp ? uri.path : uri.path.slice(1).replace(/\//g, ".");
217216
if (fileName.startsWith(".")) {
218217
return;
219218
}
219+
const api = new AtelierAPI(uri);
220220
return this._lookupAsFile(uri).then(
221221
() => {
222222
// Weirdly, if the file exists on the server we don't actually write its content here.

0 commit comments

Comments
 (0)