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

Customizable JackOut procedure (aka beforeCLJReplJackOutCode) #2647

Open
MrEbbinghaus opened this issue Oct 8, 2024 · 0 comments
Open

Customizable JackOut procedure (aka beforeCLJReplJackOutCode) #2647

MrEbbinghaus opened this issue Oct 8, 2024 · 0 comments

Comments

@MrEbbinghaus
Copy link
Contributor

There is afterCLJReplJackInCode which is convenient to set up the development workflow.
An analogous option for teardown (beforeCLJReplJackOutCode) could be handy as well

My use case

I start a portal session on jack in.

(def portal-session (p/open {:launcher :vs-code, :editor :vs-code}))

When I jack out, the window stays, but is disconnected.
When I jack in again, I get a new window.

I could just call (p/close portal-session) before jacking out, which would close the window.

Maybe it would be useful for other cases… Like deleting an on disk dev database 🤷.


Reference to Slack discussion: https://clojurians.slack.com/archives/CBE668G4R/p1728383274832969

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

No branches or pull requests

1 participant