SCM - fix issue with repository selection (#284748)
Some checks are pending
Monaco Editor checks / Monaco Editor checks (push) Waiting to run
Code OSS (node_modules) / Compile (push) Waiting to run
Code OSS (node_modules) / Linux (push) Waiting to run
Code OSS (node_modules) / macOS (push) Waiting to run
Code OSS (node_modules) / Windows (push) Waiting to run

This commit is contained in:
Ladislau Szomoru 2025-12-22 18:38:06 +00:00 committed by GitHub
parent cf186fdab7
commit 045a6c2efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1125,6 +1125,9 @@ export class ExtHostSCM implements ExtHostSCMShape {
$setSelectedSourceControl(selectedSourceControlHandle: number | undefined): Promise<void> {
this.logService.trace('ExtHostSCM#$setSelectedSourceControl', selectedSourceControlHandle);
if (this._selectedSourceControlHandle === selectedSourceControlHandle) {
return Promise.resolve(undefined);
}
if (selectedSourceControlHandle !== undefined) {
this._sourceControls.get(selectedSourceControlHandle)?.setSelectionState(true);