Skip to content

fix(vscode-ext): prevent stale JGD_SOCKET after window reload - #64

Merged
grantmcdermott merged 1 commit into
mainfrom
fix/stale-jgd-socket
Jun 4, 2026
Merged

grantmcdermott merged 1 commit into
mainfrom
fix/stale-jgd-socket

Conversation

@grantmcdermott

@grantmcdermott grantmcdermott commented Jun 4, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #63

  • Set environmentVariableCollection.persistent = false so VS Code does not replay an outdated socket path into new terminals after a reload
  • Terminals opened before activation now fall through to the discovery file, which always has the correct path

Set environmentVariableCollection.persistent = false so VS Code does
not replay an outdated socket path into new terminals after a reload.
Terminals opened before activation now fall through to the discovery
file, which always has the correct path.

Closes #63

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #63 in the VS Code extension by preventing an outdated JGD_SOCKET environment variable from being replayed into new terminals after a VS Code window reload, which could cause jgd::jgd() to try connecting to a stale socket path instead of using the discovery file.

Changes:

  • Disable persistence for the extension’s environmentVariableCollection to avoid carrying JGD_SOCKET across reloads.
  • Ensure terminals created before extension activation don’t receive a stale JGD_SOCKET and instead fall back to socket discovery.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@grantmcdermott
grantmcdermott merged commit ae3283b into main Jun 4, 2026
4 checks passed
@grantmcdermott
grantmcdermott deleted the fix/stale-jgd-socket branch June 4, 2026 21:03
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.

(vsc-ext:) Stale JGD_SOCKET prevents connection after VS Code reload

2 participants