Skip to content

Commit 26f3bc5

Browse files
fix: prevent stale JGD_SOCKET after window reload
1 parent dc715fe commit 26f3bc5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<apiImp
204204
globalPlotManager = plotViewer.initializePlotManager();
205205

206206
// Set JGD_SOCKET env var for R child processes when JGD server is running
207+
context.environmentVariableCollection.persistent = false;
207208
if (plotViewer.resolveBackend() === 'jgd' || plotViewer.resolveBackend() === 'auto') {
208209
const jgdVars = (globalPlotManager as plotViewer.CommonPlotManager).getJgdEnvVars();
209210
for (const [key, value] of Object.entries(jgdVars)) {

0 commit comments

Comments
 (0)