diff --git a/src/instantiate.ts b/src/instantiate.ts index 514e3b841..d9a7afb96 100644 --- a/src/instantiate.ts +++ b/src/instantiate.ts @@ -430,15 +430,18 @@ export async function loadAllofExtension(context: vscode.ExtensionContext) { const selectionSplit = connection!.upperCaseName(selection).split('/') if (selectionSplit.length === 3 || selection.startsWith(`/`)) { if (config && config.enableSQL && !selection.startsWith(`/`)) { - const lib = `${connection!.sysNameInAmerican(selectionSplit[0])}`; - const file = `${connection!.sysNameInAmerican(selectionSplit[1])}`; - const member = path.parse(`${connection!.sysNameInAmerican(selectionSplit[2])}`); + const libUS = connection!.sysNameInAmerican(selectionSplit[0]); + const fileUS = connection!.sysNameInAmerican(selectionSplit[1]); + const memberUS = path.parse(connection!.sysNameInAmerican(selectionSplit[2])); + const lib = selectionSplit[0]; + const file = selectionSplit[1]; + const member = path.parse(selectionSplit[2]); member.ext = member.ext.substring(1); const fullMember = await content!.runSQL(` select rtrim( cast( SYSTEM_TABLE_MEMBER as char( 10 ) for bit data ) ) as MEMBER , rtrim( coalesce( SOURCE_TYPE, '' ) ) as TYPE from QSYS2.SYSPARTITIONSTAT - where ( SYSTEM_TABLE_SCHEMA, SYSTEM_TABLE_NAME, SYSTEM_TABLE_MEMBER ) = ( '${lib}', '${file}', '${member.name}' ) + where ( SYSTEM_TABLE_SCHEMA, SYSTEM_TABLE_NAME, SYSTEM_TABLE_MEMBER ) = ( '${libUS}', '${fileUS}', '${memberUS.name}' ) limit 1 `).then((resultSet) => { return resultSet.length !== 1 ? {} : diff --git a/src/views/objectBrowser.ts b/src/views/objectBrowser.ts index b69f474f2..979182994 100644 --- a/src/views/objectBrowser.ts +++ b/src/views/objectBrowser.ts @@ -495,9 +495,9 @@ export function initializeObjectBrowser(context: vscode.ExtensionContext) { const filter = { name: `Filter ${objectFilters.length + 1}`, filterType: 'simple', - library: `QSYS`, - object: `${parsedFilter.lib}*`, - types: [`*LIB`], + library: `${parsedFilter.lib}*`, + object: `*`, + types: [`*ALL`], member: `*`, memberType: `*`, protected: false @@ -1427,4 +1427,4 @@ async function deleteObject(object: IBMiObject) { } return deleteResult.code === 0; -} \ No newline at end of file +}