Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
e8e54f7e
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e8e54f7e
编写于
3月 15, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixes #4040
上级
278ee8b0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
27 deletion
+27
-27
src/vs/workbench/parts/git/browser/gitActions.contribution.ts
...vs/workbench/parts/git/browser/gitActions.contribution.ts
+5
-5
src/vs/workbench/parts/git/browser/gitActions.ts
src/vs/workbench/parts/git/browser/gitActions.ts
+22
-22
未找到文件。
src/vs/workbench/parts/git/browser/gitActions.contribution.ts
浏览文件 @
e8e54f7e
...
...
@@ -44,7 +44,7 @@ function getStatus(gitService: IGitService, contextService: IWorkspaceContextSer
class
OpenInDiffAction
extends
baseeditor
.
EditorInputAction
{
static
ID
=
'
workbench.
git.action
.openInDiff
'
;
static
ID
=
'
workbench.
action.git
.openInDiff
'
;
static
Label
=
nls
.
localize
(
'
switchToChangesView
'
,
"
Switch to Changes View
"
);
private
gitService
:
IGitService
;
...
...
@@ -135,7 +135,7 @@ class OpenInDiffAction extends baseeditor.EditorInputAction {
class
OpenInEditorAction
extends
baseeditor
.
EditorInputAction
{
private
static
DELETED_STATES
=
[
Status
.
BOTH_DELETED
,
Status
.
DELETED
,
Status
.
DELETED_BY_US
,
Status
.
INDEX_DELETED
];
static
ID
=
'
workbench.
git.action
.openInEditor
'
;
static
ID
=
'
workbench.
action.git
.openInEditor
'
;
static
LABEL
=
nls
.
localize
(
'
openInEditor
'
,
"
Switch to Editor View
"
);
private
gitService
:
IGitService
;
...
...
@@ -250,7 +250,7 @@ export class StageRangesAction extends baseeditor.EditorInputAction {
private
editor
:
editorbrowser
.
IDiffEditor
;
constructor
(
editor
:
tdeditor
.
TextDiffEditor
,
@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
super
(
'
workbench.
git.action
.stageRanges
'
,
nls
.
localize
(
'
stageSelectedLines
'
,
"
Stage Selected Lines
"
));
super
(
'
workbench.
action.git
.stageRanges
'
,
nls
.
localize
(
'
stageSelectedLines
'
,
"
Stage Selected Lines
"
));
this
.
editorService
=
editorService
;
this
.
gitService
=
gitService
;
...
...
@@ -366,7 +366,7 @@ class GitWorkingTreeDiffEditorActionContributor extends baseeditor.EditorInputAc
class
GlobalOpenChangeAction
extends
OpenChangeAction
{
static
ID
=
'
workbench.
git.action
.globalOpenChange
'
;
static
ID
=
'
workbench.
action.git
.globalOpenChange
'
;
static
LABEL
=
nls
.
localize
(
'
openChange
'
,
"
Open Change
"
);
constructor
(
...
...
@@ -430,7 +430,7 @@ class GlobalOpenChangeAction extends OpenChangeAction {
class
GlobalOpenInEditorAction
extends
OpenFileAction
{
static
ID
=
'
workbench.
git.action
.globalOpenFile
'
;
static
ID
=
'
workbench.
action.git
.globalOpenFile
'
;
static
LABEL
=
nls
.
localize
(
'
openFile
'
,
"
Open File
"
);
constructor
(
...
...
src/vs/workbench/parts/git/browser/gitActions.ts
浏览文件 @
e8e54f7e
...
...
@@ -97,7 +97,7 @@ export abstract class GitAction extends Action {
export
class
OpenChangeAction
extends
GitAction
{
static
ID
=
'
workbench.action.openChange
'
;
static
ID
=
'
workbench.action.
git.
openChange
'
;
protected
editorService
:
IWorkbenchEditorService
;
constructor
(@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IGitService
gitService
:
IGitService
)
{
...
...
@@ -126,7 +126,7 @@ export class OpenChangeAction extends GitAction {
export
class
OpenFileAction
extends
GitAction
{
private
static
DELETED_STATES
=
[
Status
.
BOTH_DELETED
,
Status
.
DELETED
,
Status
.
DELETED_BY_US
,
Status
.
INDEX_DELETED
];
static
ID
=
'
workbench.action.openFile
'
;
static
ID
=
'
workbench.action.
git.
openFile
'
;
protected
fileService
:
IFileService
;
protected
editorService
:
IWorkbenchEditorService
;
...
...
@@ -183,7 +183,7 @@ export class OpenFileAction extends GitAction {
export
class
InitAction
extends
GitAction
{
static
ID
=
'
workbench.action.init
'
;
static
ID
=
'
workbench.action.
git.
init
'
;
constructor
(@
IGitService
gitService
:
IGitService
)
{
super
(
InitAction
.
ID
,
nls
.
localize
(
'
init
'
,
"
Init
"
),
'
git-action init
'
,
gitService
);
...
...
@@ -200,7 +200,7 @@ export class InitAction extends GitAction {
export
class
RefreshAction
extends
GitAction
{
static
ID
=
'
workbench.action.refresh
'
;
static
ID
=
'
workbench.action.
git.
refresh
'
;
constructor
(@
IGitService
gitService
:
IGitService
)
{
super
(
RefreshAction
.
ID
,
nls
.
localize
(
'
refresh
'
,
"
Refresh
"
),
'
git-action refresh
'
,
gitService
);
...
...
@@ -280,7 +280,7 @@ export abstract class BaseStageAction extends GitAction {
}
export
class
StageAction
extends
BaseStageAction
{
static
ID
=
'
workbench.action.stage
'
;
static
ID
=
'
workbench.action.
git.
stage
'
;
static
LABEL
=
nls
.
localize
(
'
stageChanges
'
,
"
Stage
"
);
constructor
(@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
...
...
@@ -290,7 +290,7 @@ export class StageAction extends BaseStageAction {
export
class
GlobalStageAction
extends
BaseStageAction
{
static
ID
=
'
workbench.action.stageAll
'
;
static
ID
=
'
workbench.action.
git.
stageAll
'
;
constructor
(@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
super
(
GlobalStageAction
.
ID
,
nls
.
localize
(
'
stageAllChanges
'
,
"
Stage All
"
),
'
git-action stage
'
,
gitService
,
editorService
);
...
...
@@ -460,7 +460,7 @@ export abstract class BaseUndoAction extends GitAction {
}
export
class
UndoAction
extends
BaseUndoAction
{
static
ID
=
'
workbench.action.undo
'
;
static
ID
=
'
workbench.action.
git.
undo
'
;
constructor
(
@
IGitService
gitService
:
IGitService
,
@
IEventService
eventService
:
IEventService
,
@
IMessageService
messageService
:
IMessageService
,
@
IFileService
fileService
:
IFileService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IWorkspaceContextService
contextService
:
IWorkspaceContextService
)
{
super
(
UndoAction
.
ID
,
nls
.
localize
(
'
undoChanges
'
,
"
Clean
"
),
'
git-action undo
'
,
gitService
,
eventService
,
messageService
,
fileService
,
editorService
,
contextService
);
}
...
...
@@ -468,7 +468,7 @@ export class UndoAction extends BaseUndoAction {
export
class
GlobalUndoAction
extends
BaseUndoAction
{
static
ID
=
'
workbench.action.undoAll
'
;
static
ID
=
'
workbench.action.
git.
undoAll
'
;
constructor
(@
IGitService
gitService
:
IGitService
,
@
IEventService
eventService
:
IEventService
,
@
IMessageService
messageService
:
IMessageService
,
@
IFileService
fileService
:
IFileService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IWorkspaceContextService
contextService
:
IWorkspaceContextService
)
{
super
(
GlobalUndoAction
.
ID
,
nls
.
localize
(
'
undoAllChanges
'
,
"
Clean All
"
),
'
git-action undo
'
,
gitService
,
eventService
,
messageService
,
fileService
,
editorService
,
contextService
);
...
...
@@ -558,7 +558,7 @@ export abstract class BaseUnstageAction extends GitAction {
}
export
class
UnstageAction
extends
BaseUnstageAction
{
static
ID
=
'
workbench.action.unstage
'
;
static
ID
=
'
workbench.action.
git.
unstage
'
;
constructor
(@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
super
(
UnstageAction
.
ID
,
nls
.
localize
(
'
unstage
'
,
"
Unstage
"
),
'
git-action unstage
'
,
gitService
,
editorService
);
...
...
@@ -567,7 +567,7 @@ export class UnstageAction extends BaseUnstageAction {
export
class
GlobalUnstageAction
extends
BaseUnstageAction
{
static
ID
=
'
workbench.action.unstageAll
'
;
static
ID
=
'
workbench.action.
git.
unstageAll
'
;
constructor
(@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
super
(
GlobalUnstageAction
.
ID
,
nls
.
localize
(
'
unstageAllChanges
'
,
"
Unstage All
"
),
'
git-action unstage
'
,
gitService
,
editorService
);
...
...
@@ -590,7 +590,7 @@ enum LifecycleState {
export
class
CheckoutAction
extends
GitAction
{
static
ID
=
'
workbench.action.checkout
'
;
static
ID
=
'
workbench.action.
git.
checkout
'
;
private
editorService
:
IWorkbenchEditorService
;
private
branch
:
IBranch
;
private
HEAD
:
IBranch
;
...
...
@@ -670,7 +670,7 @@ export class CheckoutAction extends GitAction {
export
class
BranchAction
extends
GitAction
{
static
ID
=
'
workbench.action.branch
'
;
static
ID
=
'
workbench.action.
git.
branch
'
;
private
checkout
:
boolean
;
constructor
(
checkout
:
boolean
,
@
IGitService
gitService
:
IGitService
)
{
...
...
@@ -723,7 +723,7 @@ export abstract class BaseCommitAction extends GitAction {
export
class
CommitAction
extends
BaseCommitAction
{
static
ID
=
'
workbench.action.commit
'
;
static
ID
=
'
workbench.action.
git.
commit
'
;
constructor
(
commitState
:
ICommitState
,
@
IGitService
gitService
:
IGitService
)
{
super
(
commitState
,
CommitAction
.
ID
,
nls
.
localize
(
'
commitStaged
'
,
"
Commit Staged
"
),
'
git-action commit
'
,
gitService
);
...
...
@@ -733,7 +733,7 @@ export class CommitAction extends BaseCommitAction {
export
class
StageAndCommitAction
extends
BaseCommitAction
{
static
ID
=
'
workbench.action.stageAndCommit
'
;
static
ID
=
'
workbench.action.
git.
stageAndCommit
'
;
constructor
(
commitState
:
ICommitState
,
@
IGitService
gitService
:
IGitService
)
{
super
(
commitState
,
StageAndCommitAction
.
ID
,
nls
.
localize
(
'
commitAll
'
,
"
Commit All
"
),
'
git-action stage-and-commit
'
,
gitService
);
...
...
@@ -766,7 +766,7 @@ export class StageAndCommitAction extends BaseCommitAction {
export
class
SmartCommitAction
extends
BaseCommitAction
{
static
ID
=
'
workbench.action.commitAll
'
;
static
ID
=
'
workbench.action.
git.
commitAll
'
;
private
static
ALL
=
nls
.
localize
(
'
commitAll2
'
,
"
Commit All
"
);
private
static
STAGED
=
nls
.
localize
(
'
commitStaged2
'
,
"
Commit Staged
"
);
...
...
@@ -826,7 +826,7 @@ export class SmartCommitAction extends BaseCommitAction {
export
class
PullAction
extends
GitAction
{
static
ID
=
'
workbench.action.pull
'
;
static
ID
=
'
workbench.action.
git.
pull
'
;
static
LABEL
=
nls
.
localize
(
'
pull
'
,
"
Pull
"
);
constructor
(
...
...
@@ -875,7 +875,7 @@ export class PullAction extends GitAction {
export
class
PullWithRebaseAction
extends
PullAction
{
static
ID
=
'
workbench.action.pull.rebase
'
;
static
ID
=
'
workbench.action.
git.
pull.rebase
'
;
static
LABEL
=
nls
.
localize
(
'
pullWithRebase
'
,
"
Pull (Rebase)
"
);
constructor
(@
IGitService
gitService
:
IGitService
)
{
...
...
@@ -889,7 +889,7 @@ export class PullWithRebaseAction extends PullAction {
export
class
PushAction
extends
GitAction
{
static
ID
=
'
workbench.action.push
'
;
static
ID
=
'
workbench.action.
git.
push
'
;
static
LABEL
=
nls
.
localize
(
'
push
'
,
"
Push
"
);
constructor
(
...
...
@@ -936,7 +936,7 @@ export class PushAction extends GitAction {
export
class
PublishAction
extends
GitAction
{
static
ID
=
'
workbench.action.publish
'
;
static
ID
=
'
workbench.action.
git.
publish
'
;
static
LABEL
=
nls
.
localize
(
'
publish
'
,
"
Publish
"
);
constructor
(
...
...
@@ -1048,7 +1048,7 @@ export abstract class BaseSyncAction extends GitAction {
export
class
SyncAction
extends
BaseSyncAction
{
static
ID
=
'
workbench.action.sync
'
;
static
ID
=
'
workbench.action.
git.
sync
'
;
static
LABEL
=
nls
.
localize
(
'
sync
'
,
"
Sync
"
);
constructor
(
id
:
string
,
label
:
string
,
@
IGitService
gitService
:
IGitService
)
{
...
...
@@ -1058,7 +1058,7 @@ export class SyncAction extends BaseSyncAction {
export
class
LiveSyncAction
extends
BaseSyncAction
{
static
ID
=
'
workbench.action.liveSync
'
;
static
ID
=
'
workbench.action.
git.
liveSync
'
;
static
CLASS_NAME
=
'
git-action live-sync
'
;
static
CLASS_NAME_LOADING
=
'
git-action live-sync loading
'
;
...
...
@@ -1121,7 +1121,7 @@ export class LiveSyncAction extends BaseSyncAction {
export
class
UndoLastCommitAction
extends
GitAction
{
static
ID
=
'
workbench.action.undoLastCommit
'
;
static
ID
=
'
workbench.action.
git.
undoLastCommit
'
;
constructor
(@
IGitService
gitService
:
IGitService
)
{
super
(
UndoLastCommitAction
.
ID
,
nls
.
localize
(
'
undoLastCommit
'
,
"
Undo Last Commit
"
),
'
git-action undo-last-commit
'
,
gitService
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录