Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
780a5085
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 搜索 >>
提交
780a5085
编写于
8月 05, 2019
作者:
A
Alex Ross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Strict init for tasks, file picker, and custom view
Part of #78168
上级
222401c6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
29 deletion
+29
-29
src/vs/workbench/api/browser/mainThreadTask.ts
src/vs/workbench/api/browser/mainThreadTask.ts
+1
-1
src/vs/workbench/api/common/extHostTreeViews.ts
src/vs/workbench/api/common/extHostTreeViews.ts
+7
-7
src/vs/workbench/contrib/tasks/node/processRunnerDetector.ts
src/vs/workbench/contrib/tasks/node/processRunnerDetector.ts
+7
-7
src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts
...vs/workbench/services/dialogs/browser/remoteFileDialog.ts
+14
-14
未找到文件。
src/vs/workbench/api/browser/mainThreadTask.ts
浏览文件 @
780a5085
...
...
@@ -420,7 +420,7 @@ namespace TaskFilterDTO {
@
extHostNamedCustomer
(
MainContext
.
MainThreadTask
)
export
class
MainThreadTask
implements
MainThreadTaskShape
{
private
readonly
_extHostContext
:
IExtHostContext
;
private
readonly
_extHostContext
:
IExtHostContext
|
undefined
;
private
readonly
_proxy
:
ExtHostTaskShape
;
private
readonly
_providers
:
Map
<
number
,
{
disposable
:
IDisposable
,
provider
:
ITaskProvider
}
>
;
...
...
src/vs/workbench/api/common/extHostTreeViews.ts
浏览文件 @
780a5085
...
...
@@ -247,7 +247,7 @@ class ExtHostTreeView<T> extends Disposable {
.
then
(
treeNode
=>
this
.
proxy
.
$reveal
(
this
.
viewId
,
treeNode
.
item
,
parentChain
.
map
(
p
=>
p
.
item
),
{
select
,
focus
,
expand
})),
error
=>
this
.
logService
.
error
(
error
));
}
private
_message
:
string
|
MarkdownString
;
private
_message
:
string
|
MarkdownString
=
''
;
get
message
():
string
|
MarkdownString
{
return
this
.
_message
;
}
...
...
@@ -565,9 +565,9 @@ class ExtHostTreeView<T> extends Disposable {
if
(
node
)
{
if
(
node
.
children
)
{
for
(
const
child
of
node
.
children
)
{
const
childEle
e
ment
=
this
.
elements
.
get
(
child
.
item
.
handle
);
if
(
childEle
e
ment
)
{
this
.
clear
(
childEle
e
ment
);
const
childElement
=
this
.
elements
.
get
(
child
.
item
.
handle
);
if
(
childElement
)
{
this
.
clear
(
childElement
);
}
}
}
...
...
@@ -583,9 +583,9 @@ class ExtHostTreeView<T> extends Disposable {
if
(
node
)
{
if
(
node
.
children
)
{
for
(
const
child
of
node
.
children
)
{
const
childEle
e
ment
=
this
.
elements
.
get
(
child
.
item
.
handle
);
if
(
childEle
e
ment
)
{
this
.
clear
(
childEle
e
ment
);
const
childElement
=
this
.
elements
.
get
(
child
.
item
.
handle
);
if
(
childElement
)
{
this
.
clear
(
childElement
);
}
}
}
...
...
src/vs/workbench/contrib/tasks/node/processRunnerDetector.ts
浏览文件 @
780a5085
...
...
@@ -59,9 +59,9 @@ class RegexpTaskMatcher implements TaskDetectorMatcher {
}
class
GruntTaskMatcher
implements
TaskDetectorMatcher
{
private
tasksStart
:
boolean
;
private
tasksEnd
:
boolean
;
private
descriptionOffset
:
number
|
null
;
private
tasksStart
!
:
boolean
;
private
tasksEnd
!
:
boolean
;
private
descriptionOffset
!
:
number
|
null
;
init
()
{
this
.
tasksStart
=
false
;
...
...
@@ -179,7 +179,7 @@ export class ProcessRunnerDetector {
commandExecutable
,
isShellCommand
,
config
.
matcher
,
ProcessRunnerDetector
.
DefaultProblemMatchers
,
list
));
}
else
{
if
(
detectSpecific
)
{
let
detectorPromise
:
Promise
<
DetectorResult
>
;
let
detectorPromise
:
Promise
<
DetectorResult
|
null
>
;
if
(
'
gulp
'
===
detectSpecific
)
{
detectorPromise
=
this
.
tryDetectGulp
(
this
.
_workspaceRoot
,
list
);
}
else
if
(
'
jake
'
===
detectSpecific
)
{
...
...
@@ -229,7 +229,7 @@ export class ProcessRunnerDetector {
return
result
;
}
private
tryDetectGulp
(
workspaceFolder
:
IWorkspaceFolder
,
list
:
boolean
):
Promise
<
DetectorResult
>
{
private
tryDetectGulp
(
workspaceFolder
:
IWorkspaceFolder
,
list
:
boolean
):
Promise
<
DetectorResult
|
null
>
{
return
Promise
.
resolve
(
this
.
fileService
.
resolve
(
workspaceFolder
.
toResource
(
'
gulpfile.js
'
))).
then
((
stat
)
=>
{
// TODO@Dirk (https://github.com/Microsoft/vscode/issues/29454)
let
config
=
ProcessRunnerDetector
.
detectorConfig
(
'
gulp
'
);
let
process
=
new
LineProcess
(
'
gulp
'
,
[
config
.
arg
,
'
--no-color
'
],
true
,
{
cwd
:
this
.
_cwd
});
...
...
@@ -239,7 +239,7 @@ export class ProcessRunnerDetector {
});
}
private
tryDetectGrunt
(
workspaceFolder
:
IWorkspaceFolder
,
list
:
boolean
):
Promise
<
DetectorResult
>
{
private
tryDetectGrunt
(
workspaceFolder
:
IWorkspaceFolder
,
list
:
boolean
):
Promise
<
DetectorResult
|
null
>
{
return
Promise
.
resolve
(
this
.
fileService
.
resolve
(
workspaceFolder
.
toResource
(
'
Gruntfile.js
'
))).
then
((
stat
)
=>
{
// TODO@Dirk (https://github.com/Microsoft/vscode/issues/29454)
let
config
=
ProcessRunnerDetector
.
detectorConfig
(
'
grunt
'
);
let
process
=
new
LineProcess
(
'
grunt
'
,
[
config
.
arg
,
'
--no-color
'
],
true
,
{
cwd
:
this
.
_cwd
});
...
...
@@ -249,7 +249,7 @@ export class ProcessRunnerDetector {
});
}
private
tryDetectJake
(
workspaceFolder
:
IWorkspaceFolder
,
list
:
boolean
):
Promise
<
DetectorResult
>
{
private
tryDetectJake
(
workspaceFolder
:
IWorkspaceFolder
,
list
:
boolean
):
Promise
<
DetectorResult
|
null
>
{
let
run
=
()
=>
{
let
config
=
ProcessRunnerDetector
.
detectorConfig
(
'
jake
'
);
let
process
=
new
LineProcess
(
'
jake
'
,
[
config
.
arg
],
true
,
{
cwd
:
this
.
_cwd
});
...
...
src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts
浏览文件 @
780a5085
...
...
@@ -46,24 +46,24 @@ enum UpdateResult {
}
export
class
RemoteFileDialog
{
private
options
:
IOpenDialogOptions
;
private
currentFolder
:
URI
;
private
filePickBox
:
IQuickPick
<
FileQuickPickItem
>
;
private
hidden
:
boolean
;
private
allowFileSelection
:
boolean
;
private
allowFolderSelection
:
boolean
;
private
options
!
:
IOpenDialogOptions
;
private
currentFolder
!
:
URI
;
private
filePickBox
!
:
IQuickPick
<
FileQuickPickItem
>
;
private
hidden
:
boolean
=
false
;
private
allowFileSelection
:
boolean
=
true
;
private
allowFolderSelection
:
boolean
=
false
;
private
remoteAuthority
:
string
|
undefined
;
private
requiresTrailing
:
boolean
;
private
requiresTrailing
:
boolean
=
false
;
private
trailing
:
string
|
undefined
;
private
scheme
:
string
=
REMOTE_HOST_SCHEME
;
private
contextKey
:
IContextKey
<
boolean
>
;
private
userEnteredPathSegment
:
string
;
private
autoCompletePathSegment
:
string
;
private
activeItem
:
FileQuickPickItem
;
private
userHome
:
URI
;
private
userEnteredPathSegment
:
string
=
''
;
private
autoCompletePathSegment
:
string
=
''
;
private
activeItem
:
FileQuickPickItem
|
undefined
;
private
userHome
!
:
URI
;
private
badPath
:
string
|
undefined
;
private
remoteAgentEnvironment
:
IRemoteAgentEnvironment
|
null
;
private
separator
:
string
;
private
remoteAgentEnvironment
:
IRemoteAgentEnvironment
|
null
|
undefined
;
private
separator
:
string
=
'
/
'
;
private
onBusyChangeEmitter
=
new
Emitter
<
boolean
>
();
private
updatingPromise
:
CancelablePromise
<
void
>
|
undefined
;
...
...
@@ -865,4 +865,4 @@ export class RemoteFileDialog {
return
undefined
;
}
}
}
\ No newline at end of file
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录