Skip to content

Commit

Permalink
fix for #86
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jan 13, 2020
1 parent 5bfde00 commit 50e1a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/FileSystemPovider/FileSystemProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
const { query } = url.parse(decodeURIComponent(uri.toString()), true);
const type = String(query && query.type).toLowerCase() || "all";
const csp = query.csp === "" || query.csp === "1";
let filter = query.filter || "";
let filter: string = query.filter ? query.file.toString() : "";
if (csp) {
filter = filter || "*";
} else if (type === "rtn") {
filter = "*.inc,*.int,*.mac";
} else if (type === "cls") {
filter = "*.cls";
} else {
filter = query.filter || "*.cls,*.inc,*.int,*.mac";
filter = query.filter ? query.file.toString() : "*.cls,*.inc,*.int,*.mac";
}
const folder = csp ? (uri.path.endsWith("/") ? uri.path : uri.path + "/") : uri.path.replace(/\//g, ".");
const spec = csp ? folder + filter : folder.slice(1) + filter;
const spec = csp ? folder + filter : folder.length > 1 ? folder.slice(1) + "/" + filter : filter;
const dir = "1";
const orderBy = "1";
const system = api.ns === "%SYS" ? "1" : "0";
Expand Down

0 comments on commit 50e1a03

Please sign in to comment.