File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
providers/FileSystemPovider Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,6 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
304304 private async _lookup ( uri : vscode . Uri ) : Promise < Entry > {
305305 const parts = uri . path . split ( "/" ) ;
306306 let entry : Entry = this . root ;
307- //for (const part of parts) {
308307 for ( let i = 0 ; i < parts . length ; i ++ ) {
309308 const part = parts [ i ] ;
310309 if ( ! part ) {
@@ -352,11 +351,11 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
352351 throw vscode . FileSystemError . NoPermissions ( "dot-folders not supported by server" ) ;
353352 }
354353
355- const api = new AtelierAPI ( uri ) ;
356354 const { query } = url . parse ( decodeURIComponent ( uri . toString ( ) ) , true ) ;
357355 const csp = query . csp === "" || query . csp === "1" ;
358356 const fileName = csp ? uri . path : uri . path . slice ( 1 ) . replace ( / \/ / g, "." ) ;
359357 const name = path . basename ( uri . path ) ;
358+ const api = new AtelierAPI ( uri ) ;
360359 return api
361360 . getDoc ( fileName )
362361 . then ( ( data ) => data . result )
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
8484 const { query } = url . parse ( decodeURIComponent ( uri . toString ( ) ) , true ) ;
8585 const csp = query . csp === "" || query . csp === "1" ;
8686 if ( csp ) {
87- //name = fileName.replace("\\", "/");
8887 name = uri . path ;
8988 } else if ( fileExt === "cls" ) {
9089 const match = content . match ( / ^ C l a s s ( % ? \w + (?: \. \w + ) + ) / im) ;
You can’t perform that action at this time.
0 commit comments