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 {
304
304
private async _lookup ( uri : vscode . Uri ) : Promise < Entry > {
305
305
const parts = uri . path . split ( "/" ) ;
306
306
let entry : Entry = this . root ;
307
- //for (const part of parts) {
308
307
for ( let i = 0 ; i < parts . length ; i ++ ) {
309
308
const part = parts [ i ] ;
310
309
if ( ! part ) {
@@ -352,11 +351,11 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
352
351
throw vscode . FileSystemError . NoPermissions ( "dot-folders not supported by server" ) ;
353
352
}
354
353
355
- const api = new AtelierAPI ( uri ) ;
356
354
const { query } = url . parse ( decodeURIComponent ( uri . toString ( ) ) , true ) ;
357
355
const csp = query . csp === "" || query . csp === "1" ;
358
356
const fileName = csp ? uri . path : uri . path . slice ( 1 ) . replace ( / \/ / g, "." ) ;
359
357
const name = path . basename ( uri . path ) ;
358
+ const api = new AtelierAPI ( uri ) ;
360
359
return api
361
360
. getDoc ( fileName )
362
361
. 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 {
84
84
const { query } = url . parse ( decodeURIComponent ( uri . toString ( ) ) , true ) ;
85
85
const csp = query . csp === "" || query . csp === "1" ;
86
86
if ( csp ) {
87
- //name = fileName.replace("\\", "/");
88
87
name = uri . path ;
89
88
} else if ( fileExt === "cls" ) {
90
89
const match = content . match ( / ^ C l a s s ( % ? \w + (?: \. \w + ) + ) / im) ;
You can’t perform that action at this time.
0 commit comments