Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
906c12a2
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,发现更多精彩内容 >>
提交
906c12a2
编写于
7月 11, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add git.autorefresh setting
fixes #901
上级
faeb58eb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
1 deletion
+13
-1
src/vs/workbench/parts/git/browser/gitServices.ts
src/vs/workbench/parts/git/browser/gitServices.ts
+7
-1
src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts
.../workbench/parts/git/browser/gitWorkbenchContributions.ts
+5
-0
src/vs/workbench/parts/git/common/git.ts
src/vs/workbench/parts/git/common/git.ts
+1
-0
未找到文件。
src/vs/workbench/parts/git/browser/gitServices.ts
浏览文件 @
906c12a2
...
@@ -404,7 +404,7 @@ export class GitService extends ee.EventEmitter
...
@@ -404,7 +404,7 @@ export class GitService extends ee.EventEmitter
private
reactiveStatusDelayer
:
async
.
PeriodThrottledDelayer
<
void
>
;
private
reactiveStatusDelayer
:
async
.
PeriodThrottledDelayer
<
void
>
;
private
autoFetcher
:
AutoFetcher
;
private
autoFetcher
:
AutoFetcher
;
private
isStatusPending
=
false
;
private
isStatusPending
=
false
;
private
isFocused
=
fals
e
;
private
isFocused
=
tru
e
;
private
_allowHugeRepositories
:
boolean
;
private
_allowHugeRepositories
:
boolean
;
get
allowHugeRepositories
():
boolean
{
return
this
.
_allowHugeRepositories
;
}
get
allowHugeRepositories
():
boolean
{
return
this
.
_allowHugeRepositories
;
}
...
@@ -613,6 +613,12 @@ export class GitService extends ee.EventEmitter
...
@@ -613,6 +613,12 @@ export class GitService extends ee.EventEmitter
this
.
isStatusPending
=
false
;
this
.
isStatusPending
=
false
;
const
config
=
this
.
configurationService
.
getConfiguration
<
git
.
IGitConfiguration
>
(
'
git
'
);
if
(
!
config
.
autorefresh
)
{
return
;
}
this
.
reactiveStatusDelayer
.
trigger
(()
=>
this
.
status
()).
done
(
null
,
e
=>
{
this
.
reactiveStatusDelayer
.
trigger
(()
=>
this
.
status
()).
done
(
null
,
e
=>
{
if
(
errors
.
isPromiseCanceledError
(
e
))
{
if
(
errors
.
isPromiseCanceledError
(
e
))
{
return
;
return
;
...
...
src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts
浏览文件 @
906c12a2
...
@@ -523,6 +523,11 @@ export function registerContributions(): void {
...
@@ -523,6 +523,11 @@ export function registerContributions(): void {
description
:
nls
.
localize
(
'
gitPath
'
,
"
Path to the git executable
"
),
description
:
nls
.
localize
(
'
gitPath
'
,
"
Path to the git executable
"
),
default
:
null
default
:
null
},
},
'
git.autorefresh
'
:
{
type
:
'
boolean
'
,
description
:
nls
.
localize
(
'
gitAutoRefresh
'
,
"
Whether auto refreshing is enabled
"
),
default
:
true
},
'
git.autofetch
'
:
{
'
git.autofetch
'
:
{
type
:
'
boolean
'
,
type
:
'
boolean
'
,
description
:
nls
.
localize
(
'
gitAutoFetch
'
,
"
Whether auto fetching is enabled.
"
),
description
:
nls
.
localize
(
'
gitAutoFetch
'
,
"
Whether auto fetching is enabled.
"
),
...
...
src/vs/workbench/parts/git/common/git.ts
浏览文件 @
906c12a2
...
@@ -230,6 +230,7 @@ export var ServiceOperations = {
...
@@ -230,6 +230,7 @@ export var ServiceOperations = {
export
interface
IGitConfiguration
{
export
interface
IGitConfiguration
{
enabled
:
boolean
;
enabled
:
boolean
;
path
:
string
;
path
:
string
;
autorefresh
:
boolean
;
autofetch
:
boolean
;
autofetch
:
boolean
;
enableLongCommitWarning
:
boolean
;
enableLongCommitWarning
:
boolean
;
allowLargeRepositories
:
boolean
;
allowLargeRepositories
:
boolean
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录