Skip to content

Commit c65999e

Browse files
committed
fix #623 recognize 'system=1' as a signal to include %-items
1 parent 930837d commit c65999e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ To modify how your folder behaves, edit the JSON of your workspace definition (_
189189
- `type=cls` to show only classes, or `type=rtn` to show only routines.
190190
- `flat=1` to flatten the hierarchy.
191191
- `generated=1` to show generated items.
192+
- `system=1` to show system (%) items. Without this parameter these are only shown for the %SYS namespace.
192193
- `filter=filterspec` to use a filter specification formatted in the same way as used in InterSystems Studio's File Open dialog (e.g. `filter=Ensem*.inc`).
193194

194195
## Support and Training

src/providers/FileSystemProvider/FileSystemProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
7777
const spec = csp ? folder + filter : folder.length > 1 ? folder.slice(1) + "/" + filter : filter;
7878
const dir = "1";
7979
const orderBy = "1";
80-
const system = api.ns === "%SYS" ? "1" : "0";
80+
const system = query.system && query.system.length ? query.system.toString() : api.ns === "%SYS" ? "1" : "0";
8181
const flat = query.flat && query.flat.length ? query.flat.toString() : "0";
8282
const notStudio = "0";
8383
const generated = query.generated && query.generated.length ? query.generated.toString() : "0";

0 commit comments

Comments
 (0)