From 13284139b54b87d7bd85e6926cb383cf32cdca2d Mon Sep 17 00:00:00 2001 From: isidor Date: Mon, 28 Jun 2021 09:38:47 +0200 Subject: [PATCH] follow up fix for #124770 --- src/vs/workbench/contrib/debug/common/debugStorage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/debug/common/debugStorage.ts b/src/vs/workbench/contrib/debug/common/debugStorage.ts index 1aef93c73eb..09773d42f15 100644 --- a/src/vs/workbench/contrib/debug/common/debugStorage.ts +++ b/src/vs/workbench/contrib/debug/common/debugStorage.ts @@ -15,7 +15,7 @@ const DEBUG_FUNCTION_BREAKPOINTS_KEY = 'debug.functionbreakpoint'; const DEBUG_DATA_BREAKPOINTS_KEY = 'debug.databreakpoint'; const DEBUG_EXCEPTION_BREAKPOINTS_KEY = 'debug.exceptionbreakpoint'; const DEBUG_WATCH_EXPRESSIONS_KEY = 'debug.watchexpressions'; -const DEBUG_CHOSEN_ENVIRONMENTS_KEY = 'debug.chosenenvironments'; +const DEBUG_CHOSEN_ENVIRONMENTS_KEY = 'debug.chosenenvironment'; const DEBUG_UX_STATE_KEY = 'debug.uxstate'; export class DebugStorage { @@ -89,7 +89,7 @@ export class DebugStorage { } loadChosenEnvironments(): { [key: string]: string } { - return JSON.parse(this.storageService.get(DEBUG_CHOSEN_ENVIRONMENTS_KEY, StorageScope.WORKSPACE, '[]')); + return JSON.parse(this.storageService.get(DEBUG_CHOSEN_ENVIRONMENTS_KEY, StorageScope.WORKSPACE, '{}')); } storeChosenEnvironments(environments: { [key: string]: string }): void {