File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/providers/FileSystemPovider Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,13 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
210
210
if ( uri . path . startsWith ( "/." ) ) {
211
211
throw vscode . FileSystemError . NoPermissions ( "dot-folders not supported by server" ) ;
212
212
}
213
- const api = new AtelierAPI ( uri ) ;
214
213
const { query } = url . parse ( decodeURIComponent ( uri . toString ( ) ) , true ) ;
215
214
const csp = query . csp === "" || query . csp === "1" ;
216
215
const fileName = csp ? uri . path : uri . path . slice ( 1 ) . replace ( / \/ / g, "." ) ;
217
216
if ( fileName . startsWith ( "." ) ) {
218
217
return ;
219
218
}
219
+ const api = new AtelierAPI ( uri ) ;
220
220
return this . _lookupAsFile ( uri ) . then (
221
221
( ) => {
222
222
// Weirdly, if the file exists on the server we don't actually write its content here.
You can’t perform that action at this time.
0 commit comments