From 30bf80442da4cbbc1d2e534717d7af0211417ad8 Mon Sep 17 00:00:00 2001 From: "4111978+Fred-Wu@users.noreply.github.com" <4111978+Fred-Wu@users.noreply.github.com> Date: Sat, 4 Jul 2026 17:36:45 +1000 Subject: [PATCH] Follow-up #1713: restore workspace viewer when switching R terminals --- src/session.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session.ts b/src/session.ts index a9949cde..41e5dd70 100644 --- a/src/session.ts +++ b/src/session.ts @@ -1481,6 +1481,7 @@ export async function activateSession(session: Session): Promise { info = session.info; sessionDir = session.sessionDir; workingDir = session.workingDir; + workspaceData = session.workspaceData; if (sessionStatusBarItem) { sessionStatusBarItem.text = `R ${rVer}: ${pid}`; @@ -1489,6 +1490,7 @@ export async function activateSession(session: Session): Promise { } await setContext('rSessionActive', true); rWorkspace?.refresh(); + scheduleWorkspaceRefresh(); } export function resetStatusBar(): void {