方法
-
コマンドパレット(
Ctrl+Shift+P/Cmd+Shift+P)で
「Preferences: Open Settings (JSON)」 を開きます。 -
以下を追記します。
"git-graph.repository.commits.initialLoad": 1000例えば 1000 にすれば、起動時に最新から 1000 コミットが読み込まれます。
補足
Visual Studio Code の拡張機能である Git Graph は、インストール先の package.json に既定値を定義しています。
場所はこちらです。
~/.vscode/extensions/mhutchie.git-graph-1.30.0/package.json
この中の git-graph.repository.commits.initialLoad セクションで初期ロードのデフォルト値が指定されています。
"git-graph.repository.commits.initialLoad": {
"type": "number",
"default": 300,
"description": "Specifies the number of commits to initially load."
},
このデフォルト値を settings.json で上書きしたわけです。