Skip to content

Commit a51d89e

Browse files
author
Benjamin Pasero
committed
fix
1 parent 998ed03 commit a51d89e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/code/electron-main/windows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class WindowsManager implements IWindowsMainService {
208208

209209
// A workspace was saved to a different config location. Make sure to update our
210210
// window states with this new location.
211-
const states = [this.windowsState.lastActiveWindow, this.windowsState.lastPluginDevelopmentHostWindow, ...this.windowsState.openedWindows];
211+
const states = [this.lastClosedWindowState, this.windowsState.lastActiveWindow, this.windowsState.lastPluginDevelopmentHostWindow, ...this.windowsState.openedWindows];
212212
states.forEach(state => {
213213
if (state && state.workspace && state.workspace.id === e.workspace.id && state.workspace.configPath !== e.workspace.configPath) {
214214
state.workspace.configPath = e.workspace.configPath;

0 commit comments

Comments
 (0)