@@ -131,7 +131,6 @@ import type {
131131 SearchParams ,
132132 State ,
133133 UpdateColumnsParams ,
134- UpdateDimMergeCommitsParams ,
135134 UpdateExcludeTypeParams ,
136135 UpdateGraphConfigurationParams ,
137136 UpdateRefsVisibilityParams ,
@@ -163,7 +162,6 @@ import {
163162 SearchRequest ,
164163 supportedRefMetadataTypes ,
165164 UpdateColumnsCommand ,
166- UpdateDimMergeCommitsCommand ,
167165 UpdateExcludeTypeCommand ,
168166 UpdateGraphConfigurationCommand ,
169167 UpdateIncludeOnlyRefsCommand ,
@@ -616,9 +614,6 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
616614 case ChooseRepositoryCommand . is ( e ) :
617615 void this . onChooseRepository ( ) ;
618616 break ;
619- case UpdateDimMergeCommitsCommand . is ( e ) :
620- this . dimMergeCommits ( e . params ) ;
621- break ;
622617 case DoubleClickedCommandType . is ( e ) :
623618 void this . onDoubleClick ( e . params ) ;
624619 break ;
@@ -694,6 +689,12 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
694689 void configuration . updateEffective ( 'graph.minimap.additionalTypes' , additionalTypes ) ;
695690 break ;
696691 }
692+ case 'dimMergeCommits' :
693+ void configuration . updateEffective ( 'graph.dimMergeCommits' , params . changes [ key ] ) ;
694+ break ;
695+ case 'onlyFollowFirstParent' :
696+ void configuration . updateEffective ( 'graph.onlyFollowFirstParent' , params . changes [ key ] ) ;
697+ break ;
697698 default :
698699 // TODO:@eamodio add more config options as needed
699700 debugger ;
@@ -748,30 +749,17 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
748749 configuration . changed ( e , 'defaultDateFormat' ) ||
749750 configuration . changed ( e , 'defaultDateStyle' ) ||
750751 configuration . changed ( e , 'advanced.abbreviatedShaLength' ) ||
751- configuration . changed ( e , 'graph.avatars' ) ||
752- configuration . changed ( e , 'graph.dateFormat' ) ||
753- configuration . changed ( e , 'graph.dateStyle' ) ||
754- configuration . changed ( e , 'graph.dimMergeCommits' ) ||
755- configuration . changed ( e , 'graph.highlightRowsOnRefHover' ) ||
756- configuration . changed ( e , 'graph.scrollRowPadding' ) ||
757- configuration . changed ( e , 'graph.scrollMarkers.enabled' ) ||
758- configuration . changed ( e , 'graph.scrollMarkers.additionalTypes' ) ||
759- configuration . changed ( e , 'graph.showGhostRefsOnRowHover' ) ||
760- configuration . changed ( e , 'graph.pullRequests.enabled' ) ||
761- configuration . changed ( e , 'graph.showRemoteNames' ) ||
762- configuration . changed ( e , 'graph.showUpstreamStatus' ) ||
763- configuration . changed ( e , 'graph.minimap.enabled' ) ||
764- configuration . changed ( e , 'graph.minimap.dataType' ) ||
765- configuration . changed ( e , 'graph.minimap.additionalTypes' )
752+ configuration . changed ( e , 'graph' )
766753 ) {
767754 void this . notifyDidChangeConfiguration ( ) ;
768755
769756 if (
770- ( configuration . changed ( e , 'graph.minimap.enabled' ) ||
757+ configuration . changed ( e , 'graph.onlyFollowFirstParent' ) ||
758+ ( ( configuration . changed ( e , 'graph.minimap.enabled' ) ||
771759 configuration . changed ( e , 'graph.minimap.dataType' ) ) &&
772- configuration . get ( 'graph.minimap.enabled' ) &&
773- configuration . get ( 'graph.minimap.dataType' ) === 'lines' &&
774- ! this . _graph ?. includes ?. stats
760+ configuration . get ( 'graph.minimap.enabled' ) &&
761+ configuration . get ( 'graph.minimap.dataType' ) === 'lines' &&
762+ ! this . _graph ?. includes ?. stats )
775763 ) {
776764 this . updateState ( ) ;
777765 }
@@ -833,10 +821,6 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
833821 this . updateState ( ) ;
834822 }
835823
836- private dimMergeCommits ( e : UpdateDimMergeCommitsParams ) {
837- void configuration . updateEffective ( 'graph.dimMergeCommits' , e . dim ) ;
838- }
839-
840824 private onColumnsChanged ( e : UpdateColumnsParams ) {
841825 this . updateColumns ( e . config ) ;
842826 }
@@ -1846,6 +1830,7 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
18461830 minimap : configuration . get ( 'graph.minimap.enabled' ) ,
18471831 minimapDataType : configuration . get ( 'graph.minimap.dataType' ) ,
18481832 minimapMarkerTypes : this . getMinimapMarkerTypes ( ) ,
1833+ onlyFollowFirstParent : configuration . get ( 'graph.onlyFollowFirstParent' ) ,
18491834 scrollRowPadding : configuration . get ( 'graph.scrollRowPadding' ) ,
18501835 scrollMarkerTypes : this . getScrollMarkerTypes ( ) ,
18511836 showGhostRefsOnRowHover : configuration . get ( 'graph.showGhostRefsOnRowHover' ) ,
0 commit comments