@@ -17,7 +17,7 @@ import { IFileDialogService } from '../../../../platform/dialogs/common/dialogs.
1717import { IQuickInputService , IQuickPickItem , QuickPickInput } from '../../../../platform/quickinput/common/quickInput.js' ;
1818import product from '../../../../platform/product/common/product.js' ;
1919import { Registry } from '../../../../platform/registry/common/platform.js' ;
20- import { type ConfigurationKeyValuePairs , Extensions as WorkbenchConfigurationExtensions , IConfigurationMigrationRegistry } from '../../../../workbench/common/configuration.js' ;
20+ import { Extensions as WorkbenchConfigurationExtensions , IConfigurationMigrationRegistry } from '../../../../workbench/common/configuration.js' ;
2121import { registerWorkbenchContribution2 , WorkbenchPhase } from '../../../../workbench/common/contributions.js' ;
2222import { ISessionsService } from '../../../services/sessions/browser/sessionsService.js' ;
2323import { ISessionsManagementService , inheritableSessionTarget } from '../../../services/sessions/common/sessionsManagement.js' ;
@@ -57,12 +57,12 @@ import { SessionsChatResponseFileChangesService } from './sessionTurnChanges.js'
5757import { IChatResponseFileChangesService } from '../../../../workbench/contrib/chat/browser/chatResponseFileChangesService.js' ;
5858import { SessionsChatPetAchievementContribution } from './chatPetAchievements.js' ;
5959import { AGENT_SESSIONS_CHAT_BACKGROUND_CODICONS_PRESET , AGENT_SESSIONS_PREFERRED_DARK_CHAT_BACKGROUND_IMAGE_LAYOUT_SETTING , AGENT_SESSIONS_PREFERRED_DARK_CHAT_BACKGROUND_IMAGE_SETTING , AGENT_SESSIONS_PREFERRED_LIGHT_CHAT_BACKGROUND_IMAGE_LAYOUT_SETTING , AGENT_SESSIONS_PREFERRED_LIGHT_CHAT_BACKGROUND_IMAGE_SETTING , chatBackgroundImageLayoutValues , ChatBackgroundImageLayout , ISessionsChatBackgroundService , SessionsChatBackgroundService } from '../../../services/chatBackground/browser/chatBackgroundService.js' ;
60+ import { LEGACY_UNIFIED_WORKSPACE_PICKER_SETTING , unifiedWorkspacePickerConfigurationMigration } from './unifiedWorkspacePickerConfiguration.js' ;
6061
6162const CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_COMMAND_ID = 'workbench.action.chat.changeAgentSessionsBackground' ;
6263const CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_COMMAND_ID = 'workbench.action.chat.changeAgentSessionsBackgroundLayout' ;
6364const CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN = ContextKeyExpr . and ( IsSessionsWindowContext , SessionsChatBackgroundAvailableContext ) ;
6465const CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_WHEN = ContextKeyExpr . and ( CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN , SessionsChatBackgroundImageConfiguredContext ) ;
65- const LEGACY_UNIFIED_WORKSPACE_PICKER_SETTING = 'chat.agentSessions.consolidatedRemoteWorkspaces' ;
6666
6767type RecentChatBackgroundTypeItem = IQuickPickItem & {
6868 readonly kind : 'recentImage' ;
@@ -436,14 +436,4 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
436436 } ,
437437} ) ;
438438
439- Registry . as < IConfigurationMigrationRegistry > ( WorkbenchConfigurationExtensions . ConfigurationMigration ) . registerConfigurationMigrations ( [ {
440- key : LEGACY_UNIFIED_WORKSPACE_PICKER_SETTING ,
441- includeApplication : true ,
442- migrateFn : ( value , accessor ) => {
443- const pairs : ConfigurationKeyValuePairs = [ [ LEGACY_UNIFIED_WORKSPACE_PICKER_SETTING , { value : undefined } ] ] ;
444- if ( accessor ( UNIFIED_WORKSPACE_PICKER_SETTING ) === undefined ) {
445- pairs . push ( [ UNIFIED_WORKSPACE_PICKER_SETTING , { value } ] ) ;
446- }
447- return pairs ;
448- } ,
449- } ] ) ;
439+ Registry . as < IConfigurationMigrationRegistry > ( WorkbenchConfigurationExtensions . ConfigurationMigration ) . registerConfigurationMigrations ( [ unifiedWorkspacePickerConfigurationMigration ] ) ;
0 commit comments