Skip to content

Commit 81d9df5

Browse files
committed
fix #467 improve Quick Open (ctrl+p) on isfs (uses proposed API)
1 parent b1b475b commit 81d9df5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/providers/FileSystemPovider/FileSearchProvider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ export class FileSearchProvider implements vscode.FileSearchProvider {
3434
if (category === "*" && file.cat === "CSP") {
3535
return null;
3636
}
37+
if (file.cat !== "CSP") {
38+
if (file.name.startsWith("%") && api.ns !== "%SYS") {
39+
return null;
40+
}
41+
const nameParts = file.name.split(".");
42+
file.name = nameParts.slice(0, -2).join("/") + "/" + nameParts.slice(-2).join(".");
43+
}
3744
if (!options.maxResults || ++counter <= options.maxResults) {
3845
return options.folder.with({ path: `/${file.name}` });
3946
} else {

0 commit comments

Comments
 (0)