SCM - update the default value for the scm.repositories.selectionMode setting (#272173)

This commit is contained in:
Ladislau Szomoru
2025-10-19 19:21:37 +02:00
committed by GitHub
parent c6277d5d8d
commit 78fb84bc70
4 changed files with 4 additions and 4 deletions
@@ -356,7 +356,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
localize('scm.repositories.selectionMode.single', "Only one repository can be selected at a time.")
],
description: localize('scm.repositories.selectionMode', "Controls the selection mode of the repositories in the Source Control Repositories view."),
default: 'multiple'
default: 'single'
},
'scm.showActionButton': {
type: 'boolean',
@@ -192,7 +192,7 @@ export class SCMRepositoriesViewPane extends ViewPane {
this._register(this.treeDataSource);
const compressionEnabled = observableConfigValue('scm.compactFolders', true, this.configurationService);
const selectionModeConfig = observableConfigValue<'multiple' | 'single'>('scm.repositories.selectionMode', 'multiple', this.configurationService);
const selectionModeConfig = observableConfigValue<'multiple' | 'single'>('scm.repositories.selectionMode', 'single', this.configurationService);
this.tree = this.instantiationService.createInstance(
WorkbenchCompressibleAsyncDataTree,
@@ -78,7 +78,7 @@ export class RepositoryRenderer implements ICompressibleTreeRenderer<ISCMReposit
@ISCMViewService private scmViewService: ISCMViewService,
@ITelemetryService private telemetryService: ITelemetryService
) {
this._selectionModeConfig = observableConfigValue('scm.repositories.selectionMode', 'multiple', this.configurationService);
this._selectionModeConfig = observableConfigValue('scm.repositories.selectionMode', 'single', this.configurationService);
}
renderTemplate(container: HTMLElement): RepositoryTemplate {
@@ -243,7 +243,7 @@ export class SCMViewService implements ISCMViewService {
) {
this.menus = instantiationService.createInstance(SCMMenus);
this._selectionModeConfig = observableConfigValue<'multiple' | 'single'>('scm.repositories.selectionMode', 'multiple', this.configurationService);
this._selectionModeConfig = observableConfigValue<'multiple' | 'single'>('scm.repositories.selectionMode', 'single', this.configurationService);
try {
this.previousState = JSON.parse(storageService.get('scm:view:visibleRepositories', StorageScope.WORKSPACE, ''));