提交 f6c6650c 编写于 作者: C Christof Marti

Use Git commandId unless SCM preview is enabled (fixes #19054)

上级 ab5cfa0d
......@@ -19,6 +19,7 @@ import { localize } from 'vs/nls';
import { Action } from 'vs/base/common/actions';
import { IWorkbenchActionRegistry, Extensions } from 'vs/workbench/common/actionRegistry';
import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
import SCMPreview from 'vs/workbench/parts/scm/browser/scmPreview';
interface Key {
id: string;
......@@ -46,7 +47,7 @@ const keys: Key[] = [
id: 'git',
arrow: '←',
label: localize('welcomeOverlay.git', "Source code management"),
command: 'workbench.view.scm'
command: SCMPreview.enabled ? 'workbench.view.scm' : 'workbench.view.git'
},
{
id: 'debug',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册