Skip to content

Conversation

@sebjulliand
Copy link
Member

This PR fixes an issue causing the ResultSet view to not grab the focus when running a statement after disconnecting and reconnecting to an IBM i.

This was caused by the ResultSetPanelProvider not keeping track of the disposed status of the webview, preventing the ensureActivation from working properly.

By resetting the reference to the resolved webview once it's disposed, the ensureActivation method can work as expected after reconnecting to a system.

How to test

  1. Connect to an IBM i
  2. Run a statement
  3. The Result Set webview must grab the focus and display the results
  4. Disconnect
  5. Connect again
  6. Run a statement
  7. The Result Set webview must grab the focus and display the results again

Without this PR, step 7. doesn't happen and the user must manually reveal the result set webview.

@sebjulliand sebjulliand added the bug Something isn't working label Mar 25, 2024
@sebjulliand sebjulliand self-assigned this Mar 25, 2024
Copy link
Collaborator

@davecharron davecharron left a comment

Choose a reason for hiding this comment

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

Changes look reasonable, seems to work as expected.

@worksofliam worksofliam merged commit cc8aae2 into codefori:main Mar 25, 2024
@sebjulliand sebjulliand deleted the fix/resultSetAlwaysFocus branch March 26, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants