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

Change some pickers from "workspace folders" to "server connections" #1467

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

isc-bsaviano
Copy link
Contributor

This PR fixes #1461. I added a new utility method for picking a server connection from the current workspace. It de-duplicates connections and has optional minimum server version checking. I used it for Lite Terminal and picking a process to attach to for debugging.

Screenshot 2025-01-23 at 9 12 22 AM

isc-rsingh
isc-rsingh previously approved these changes Jan 23, 2025
Copy link
Contributor

@gjsjohnmurray gjsjohnmurray left a comment

Choose a reason for hiding this comment

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

Nice. Just one observation from my testing so far. When I have a workspace with at least 2 folders with distinct connections to 2023.2+ servers, and I invoke Lite Terminal from the dropdown on Panel's Terminal view, I correctly get the new picker. But if I change my mind and dismiss it with Esc I get an error notification on the bottom right saying "Lite Terminal requires an active server connection to InterSystems IRIS version 2023.2 or above.". It'd be nicer to suppress that in this case, but still present it if there were no eligible connections to offer the user. I guess that'd require getWsServerConnection to give different responses in those two cases rather than undefined for both.

@isc-bsaviano
Copy link
Contributor Author

Good suggestion John. I will implement that.

@isc-bsaviano isc-bsaviano merged commit 37357e0 into intersystems-community:master Jan 24, 2025
5 checks passed
@isc-bsaviano isc-bsaviano deleted the fix-1461 branch January 24, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lite terminal - default workspace folder
3 participants