Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
6945d3a5
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6945d3a5
编写于
2月 23, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
compile: gitActions
上级
b0dd96a9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
src/vs/workbench/parts/git/browser/gitActions.ts
src/vs/workbench/parts/git/browser/gitActions.ts
+7
-7
未找到文件。
src/vs/workbench/parts/git/browser/gitActions.ts
浏览文件 @
6945d3a5
...
@@ -66,9 +66,9 @@ export abstract class GitAction extends Action {
...
@@ -66,9 +66,9 @@ export abstract class GitAction extends Action {
protected
toDispose
:
IDisposable
[];
protected
toDispose
:
IDisposable
[];
constructor
(
id
:
string
,
label
:
string
,
cssClass
:
string
,
gitService
:
IGitService
)
{
constructor
(
id
:
string
,
label
:
string
,
cssClass
:
string
,
gitService
:
IGitService
)
{
this
.
gitService
=
gitService
;
super
(
id
,
label
,
cssClass
,
false
);
super
(
id
,
label
,
cssClass
,
false
);
this
.
gitService
=
gitService
;
this
.
toDispose
=
[
this
.
gitService
.
addBulkListener2
(()
=>
this
.
onGitServiceChange
())];
this
.
toDispose
=
[
this
.
gitService
.
addBulkListener2
(()
=>
this
.
onGitServiceChange
())];
this
.
onGitServiceChange
();
this
.
onGitServiceChange
();
}
}
...
@@ -101,8 +101,8 @@ export class OpenChangeAction extends GitAction {
...
@@ -101,8 +101,8 @@ export class OpenChangeAction extends GitAction {
protected
editorService
:
IWorkbenchEditorService
;
protected
editorService
:
IWorkbenchEditorService
;
constructor
(@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IGitService
gitService
:
IGitService
)
{
constructor
(@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IGitService
gitService
:
IGitService
)
{
this
.
editorService
=
editorService
;
super
(
OpenChangeAction
.
ID
,
nls
.
localize
(
'
openChange
'
,
"
Open Change
"
),
'
git-action open-change
'
,
gitService
);
super
(
OpenChangeAction
.
ID
,
nls
.
localize
(
'
openChange
'
,
"
Open Change
"
),
'
git-action open-change
'
,
gitService
);
this
.
editorService
=
editorService
;
}
}
protected
isEnabled
():
boolean
{
protected
isEnabled
():
boolean
{
...
@@ -132,10 +132,10 @@ export class OpenFileAction extends GitAction {
...
@@ -132,10 +132,10 @@ export class OpenFileAction extends GitAction {
private
contextService
:
IWorkspaceContextService
;
private
contextService
:
IWorkspaceContextService
;
constructor
(@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IFileService
fileService
:
IFileService
,
@
IGitService
gitService
:
IGitService
,
@
IWorkspaceContextService
contextService
:
IWorkspaceContextService
)
{
constructor
(@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
,
@
IFileService
fileService
:
IFileService
,
@
IGitService
gitService
:
IGitService
,
@
IWorkspaceContextService
contextService
:
IWorkspaceContextService
)
{
super
(
OpenFileAction
.
ID
,
nls
.
localize
(
'
openFile
'
,
"
Open File
"
),
'
git-action open-file
'
,
gitService
);
this
.
fileService
=
fileService
;
this
.
fileService
=
fileService
;
this
.
editorService
=
editorService
;
this
.
editorService
=
editorService
;
this
.
contextService
=
contextService
;
this
.
contextService
=
contextService
;
super
(
OpenFileAction
.
ID
,
nls
.
localize
(
'
openFile
'
,
"
Open File
"
),
'
git-action open-file
'
,
gitService
);
}
}
protected
isEnabled
():
boolean
{
protected
isEnabled
():
boolean
{
...
@@ -312,12 +312,12 @@ export abstract class BaseUndoAction extends GitAction {
...
@@ -312,12 +312,12 @@ export abstract class BaseUndoAction extends GitAction {
private
contextService
:
IWorkspaceContextService
;
private
contextService
:
IWorkspaceContextService
;
constructor
(
id
:
string
,
label
:
string
,
className
:
string
,
gitService
:
IGitService
,
eventService
:
IEventService
,
messageService
:
IMessageService
,
fileService
:
IFileService
,
editorService
:
IWorkbenchEditorService
,
contextService
:
IWorkspaceContextService
)
{
constructor
(
id
:
string
,
label
:
string
,
className
:
string
,
gitService
:
IGitService
,
eventService
:
IEventService
,
messageService
:
IMessageService
,
fileService
:
IFileService
,
editorService
:
IWorkbenchEditorService
,
contextService
:
IWorkspaceContextService
)
{
super
(
id
,
label
,
className
,
gitService
);
this
.
eventService
=
eventService
;
this
.
eventService
=
eventService
;
this
.
editorService
=
editorService
;
this
.
editorService
=
editorService
;
this
.
messageService
=
messageService
;
this
.
messageService
=
messageService
;
this
.
fileService
=
fileService
;
this
.
fileService
=
fileService
;
this
.
contextService
=
contextService
;
this
.
contextService
=
contextService
;
super
(
id
,
label
,
className
,
gitService
);
}
}
protected
isEnabled
():
boolean
{
protected
isEnabled
():
boolean
{
...
@@ -595,13 +595,13 @@ export class CheckoutAction extends GitAction {
...
@@ -595,13 +595,13 @@ export class CheckoutAction extends GitAction {
private
runPromises
:
Promise
[];
private
runPromises
:
Promise
[];
constructor
(
branch
:
IBranch
,
@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
constructor
(
branch
:
IBranch
,
@
IGitService
gitService
:
IGitService
,
@
IWorkbenchEditorService
editorService
:
IWorkbenchEditorService
)
{
super
(
CheckoutAction
.
ID
,
branch
.
name
,
'
git-action checkout
'
,
gitService
);
this
.
editorService
=
editorService
;
this
.
editorService
=
editorService
;
this
.
branch
=
branch
;
this
.
branch
=
branch
;
this
.
HEAD
=
null
;
this
.
HEAD
=
null
;
this
.
state
=
LifecycleState
.
Alive
;
this
.
state
=
LifecycleState
.
Alive
;
this
.
runPromises
=
[];
this
.
runPromises
=
[];
super
(
CheckoutAction
.
ID
,
branch
.
name
,
'
git-action checkout
'
,
gitService
);
}
}
protected
onGitServiceChange
():
void
{
protected
onGitServiceChange
():
void
{
...
@@ -766,8 +766,8 @@ export class SmartCommitAction extends BaseCommitAction {
...
@@ -766,8 +766,8 @@ export class SmartCommitAction extends BaseCommitAction {
private
messageService
:
IMessageService
;
private
messageService
:
IMessageService
;
constructor
(
commitState
:
ICommitState
,
@
IGitService
gitService
:
IGitService
,
@
IMessageService
messageService
:
IMessageService
)
{
constructor
(
commitState
:
ICommitState
,
@
IGitService
gitService
:
IGitService
,
@
IMessageService
messageService
:
IMessageService
)
{
this
.
messageService
=
messageService
;
super
(
commitState
,
SmartCommitAction
.
ID
,
SmartCommitAction
.
ALL
,
'
git-action smart-commit
'
,
gitService
);
super
(
commitState
,
SmartCommitAction
.
ID
,
SmartCommitAction
.
ALL
,
'
git-action smart-commit
'
,
gitService
);
this
.
messageService
=
messageService
;
}
}
protected
onGitServiceChange
():
void
{
protected
onGitServiceChange
():
void
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录