Skip to content

Commit 9007697

Browse files
committed
cleanup
1 parent 46287af commit 9007697

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/providers/FileSystemPovider/FileSystemProvider.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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)

src/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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(/^Class (%?\w+(?:\.\w+)+)/im);

0 commit comments

Comments
 (0)