Skip to content

Commit

Permalink
Fix library commands in Object Browser
Browse files Browse the repository at this point in the history
Signed-off-by: Sanjula <[email protected]>
  • Loading branch information
SanjulaGanepola committed Jun 29, 2024
1 parent 951026f commit 7aa9bc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/projectExplorer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export default class ProjectExplorer implements TreeDataProvider<ProjectExplorer
const iProject = ProjectManager.getActiveProject();

if (iProject) {
const library = element.name;
const library = element.library;

if (library) {
const selectedPosition = await window.showQuickPick([
Expand All @@ -503,7 +503,7 @@ export default class ProjectExplorer implements TreeDataProvider<ProjectExplorer
}),
commands.registerCommand(`vscode-ibmi-projectexplorer.projectExplorer.setAsCurrentLibrary`, async (element: any) => {
if (element) {
const library = element.name;
const library = element.library;

if (library) {
const iProject = ProjectManager.getActiveProject();
Expand All @@ -521,7 +521,7 @@ export default class ProjectExplorer implements TreeDataProvider<ProjectExplorer
}),
commands.registerCommand(`vscode-ibmi-projectexplorer.projectExplorer.setAsTargetLibraryForCompiles`, async (element: any) => {
if (element) {
const library = element.name;
const library = element.library;

if (library) {
const iProject = ProjectManager.getActiveProject();
Expand Down Expand Up @@ -768,7 +768,7 @@ export default class ProjectExplorer implements TreeDataProvider<ProjectExplorer
value = element.label!.toString();
} else {
// Invoked from library in Object Browser or directory in IFS Browser
value = element.name ? element.name : element.path;
value = element.path;
}

if (value) {
Expand Down

0 comments on commit 7aa9bc2

Please sign in to comment.