@ -174,6 +174,7 @@ const defaultGraphColumnsSettings: GraphColumnsSettings = {
author : { width : 130 , isHidden : false } ,
datetime : { width : 130 , isHidden : false } ,
sha : { width : 130 , isHidden : false } ,
changes : { width : 130 , isHidden : true } ,
} ;
export class GraphWebview extends WebviewBase < State > {
@ -412,6 +413,8 @@ export class GraphWebview extends WebviewBase {
registerCommand ( 'gitlens.graph.columnDateTimeOff' , ( ) = > this . toggleColumn ( 'datetime' , false ) ) ,
registerCommand ( 'gitlens.graph.columnShaOn' , ( ) = > this . toggleColumn ( 'sha' , true ) ) ,
registerCommand ( 'gitlens.graph.columnShaOff' , ( ) = > this . toggleColumn ( 'sha' , false ) ) ,
registerCommand ( 'gitlens.graph.columnChangesOn' , ( ) = > this . toggleColumn ( 'changes' , true ) ) ,
registerCommand ( 'gitlens.graph.columnChangesOff' , ( ) = > this . toggleColumn ( 'changes' , false ) ) ,
registerCommand ( 'gitlens.graph.copyDeepLinkToBranch' , this . copyDeepLinkToBranch , this ) ,
registerCommand ( 'gitlens.graph.copyDeepLinkToCommit' , this . copyDeepLinkToCommit , this ) ,
@ -1774,11 +1777,14 @@ export class GraphWebview extends WebviewBase {
const ref =
this . _selectedId == null || this . _selectedId === GitRevision . uncommitted ? 'HEAD' : this . _selectedId ;
const columns = this . getColumns ( ) ;
const columnSettings = this . getColumnSettings ( columns ) ;
const dataPromise = this . container . git . getCommitsForGraph (
this . repository . path ,
this . _panel ! . webview . asWebviewUri . bind ( this . _panel ! . webview ) ,
{
include : { stats : configuration.get ( 'graph.experimental.minimap.enabled' ) } ,
include : { stats : configuration.get ( 'graph.experimental.minimap.enabled' ) || ! columnSettings . changes . isHidden } ,
limit : limit ,
ref : ref ,
} ,
@ -1807,8 +1813,6 @@ export class GraphWebview extends WebviewBase {
this . setSelectedRows ( data . id ) ;
}
const columns = this . getColumns ( ) ;
const lastFetched = await this . repository . getLastFetched ( ) ;
const branch = await this . repository . getBranch ( ) ;
@ -1834,7 +1838,7 @@ export class GraphWebview extends WebviewBase {
hasMore : data.paging?.hasMore ? ? false ,
}
: undefined ,
columns : this.getColumnSettings ( columns ) ,
columns : columnSettings ,
config : this.getComponentConfig ( ) ,
context : {
header : this.getColumnHeaderContext ( columns ) ,