Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Object browser's Refresh in two separate actions #1574

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

sebjulliand
Copy link
Collaborator

Changes

Fixes #1555

The code-for-ibmi.refreshObjectBrowser used to accept no parameter; after converting the Object Browser to TypeScript, that command was changed to accept a TreeItem in parameter, to allow finer refreshes. It turns out that the browsers selected item was always passed onto the command when the Refresh inline button was clicked.

This PR revert that change so the command behave as it used to (i.e. clicking on Refresh refreshes the entire browser.
It also adds a new code-for-ibmi.refreshObjectBrowserItem command that is dedicated to refreshing the browser selected item. A Refresh action has been added on every browser's item to enable refresh at every level.

image

Checklist

  • have tested my change

- Refresh all (original)
- Refresh selected item (new)

Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
@sebjulliand sebjulliand added bug A confirmed issue when something isn't working as intended enhancement New feature or request labels Oct 5, 2023
@sebjulliand sebjulliand self-assigned this Oct 5, 2023
Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebjulliand Working as expected - good job!

@chrjorgensen chrjorgensen merged commit 08e0d1a into master Oct 5, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A confirmed issue when something isn't working as intended enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refresh Object Browser - not working when file selected.
2 participants