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 {
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.
You can’t perform that action at this time.
0 commit comments