mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-28 06:31:58 +00:00
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
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:
parent
cf186fdab7
commit
045a6c2efc
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user