Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0de8d519
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,发现更多精彩内容 >>
提交
0de8d519
编写于
8月 27, 2020
作者:
A
Alex Ross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Finalize task detail API
Fixes #69785
上级
0eb11e8f
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
15 addition
and
18 deletion
+15
-18
extensions/npm/src/npmView.ts
extensions/npm/src/npmView.ts
+1
-1
extensions/npm/src/tasks.ts
extensions/npm/src/tasks.ts
+1
-1
extensions/typescript-language-features/src/task/taskProvider.ts
...ons/typescript-language-features/src/task/taskProvider.ts
+1
-1
extensions/vscode-api-tests/src/singlefolder-tests/workspace.tasks.test.ts
...-api-tests/src/singlefolder-tests/workspace.tasks.test.ts
+3
-3
src/vs/vscode.d.ts
src/vs/vscode.d.ts
+5
-0
src/vs/vscode.proposed.d.ts
src/vs/vscode.proposed.d.ts
+0
-7
src/vs/workbench/api/common/extHost.api.impl.ts
src/vs/workbench/api/common/extHost.api.impl.ts
+0
-1
src/vs/workbench/api/common/extHostTask.ts
src/vs/workbench/api/common/extHostTask.ts
+2
-2
src/vs/workbench/api/common/extHostTypes.ts
src/vs/workbench/api/common/extHostTypes.ts
+1
-1
src/vs/workbench/api/node/extHostTask.ts
src/vs/workbench/api/node/extHostTask.ts
+1
-1
未找到文件。
extensions/npm/src/npmView.ts
浏览文件 @
0de8d519
...
...
@@ -7,7 +7,7 @@ import { JSONVisitor, visit } from 'jsonc-parser';
import
*
as
path
from
'
path
'
;
import
{
commands
,
Event
,
EventEmitter
,
ExtensionContext
,
Selection
,
Task
2
as
Task
,
Selection
,
Task
,
TaskGroup
,
tasks
,
TextDocument
,
ThemeIcon
,
TreeDataProvider
,
TreeItem
,
TreeItemCollapsibleState
,
Uri
,
window
,
workspace
,
WorkspaceFolder
}
from
'
vscode
'
;
...
...
extensions/npm/src/tasks.ts
浏览文件 @
0de8d519
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
TaskDefinition
,
Task
2
as
Task
,
TaskGroup
,
WorkspaceFolder
,
RelativePattern
,
ShellExecution
,
Uri
,
workspace
,
TaskDefinition
,
Task
,
TaskGroup
,
WorkspaceFolder
,
RelativePattern
,
ShellExecution
,
Uri
,
workspace
,
DebugConfiguration
,
debug
,
TaskProvider
,
TextDocument
,
tasks
,
TaskScope
,
QuickPickItem
}
from
'
vscode
'
;
import
*
as
path
from
'
path
'
;
...
...
extensions/typescript-language-features/src/task/taskProvider.ts
浏览文件 @
0de8d519
...
...
@@ -203,7 +203,7 @@ class TscTaskProvider implements vscode.TaskProvider {
}
private
getBuildTask
(
workspaceFolder
:
vscode
.
WorkspaceFolder
|
undefined
,
label
:
string
,
command
:
string
,
args
:
string
[],
buildTaskidentifier
:
TypeScriptTaskDefinition
):
vscode
.
Task
{
const
buildTask
=
new
vscode
.
Task
2
(
const
buildTask
=
new
vscode
.
Task
(
buildTaskidentifier
,
workspaceFolder
||
vscode
.
TaskScope
.
Workspace
,
localize
(
'
buildTscLabel
'
,
'
build - {0}
'
,
label
),
...
...
extensions/vscode-api-tests/src/singlefolder-tests/workspace.tasks.test.ts
浏览文件 @
0de8d519
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
*
as
assert
from
'
assert
'
;
import
{
window
,
tasks
,
Disposable
,
TaskDefinition
,
Task
,
EventEmitter
,
CustomExecution
,
Pseudoterminal
,
TaskScope
,
commands
,
Task2
,
env
,
UIKind
,
ShellExecution
,
TaskExecution
,
Terminal
,
Event
}
from
'
vscode
'
;
import
{
window
,
tasks
,
Disposable
,
TaskDefinition
,
Task
,
EventEmitter
,
CustomExecution
,
Pseudoterminal
,
TaskScope
,
commands
,
env
,
UIKind
,
ShellExecution
,
TaskExecution
,
Terminal
,
Event
}
from
'
vscode
'
;
// Disable tasks tests:
// - Web https://github.com/microsoft/vscode/issues/90528
...
...
@@ -94,7 +94,7 @@ import { window, tasks, Disposable, TaskDefinition, Task, EventEmitter, CustomEx
};
return
Promise
.
resolve
(
pty
);
});
const
task
=
new
Task
2
(
kind
,
TaskScope
.
Workspace
,
taskName
,
taskType
,
execution
);
const
task
=
new
Task
(
kind
,
TaskScope
.
Workspace
,
taskName
,
taskType
,
execution
);
result
.
push
(
task
);
return
result
;
},
...
...
@@ -151,7 +151,7 @@ import { window, tasks, Disposable, TaskDefinition, Task, EventEmitter, CustomEx
};
return
Promise
.
resolve
(
pty
);
});
const
task
=
new
Task
2
(
kind
,
TaskScope
.
Workspace
,
taskName
,
taskType
,
execution
);
const
task
=
new
Task
(
kind
,
TaskScope
.
Workspace
,
taskName
,
taskType
,
execution
);
result
.
push
(
task
);
return
result
;
},
...
...
src/vs/vscode.d.ts
浏览文件 @
0de8d519
...
...
@@ -6205,6 +6205,11 @@ declare module 'vscode' {
*/
name
:
string
;
/**
* A detail to show for the task on a second line in places where the task's name is displayed.
*/
detail
?:
string
;
/**
* The task's execution engine
*/
...
...
src/vs/vscode.proposed.d.ts
浏览文件 @
0de8d519
...
...
@@ -963,13 +963,6 @@ declare module 'vscode' {
}
//#endregion
/**
* A task to execute
*/
export
class
Task2
extends
Task
{
detail
?:
string
;
}
//#region Task presentation group: https://github.com/microsoft/vscode/issues/47265
export
interface
TaskPresentationOptions
{
/**
...
...
src/vs/workbench/api/common/extHost.api.impl.ts
浏览文件 @
0de8d519
...
...
@@ -1098,7 +1098,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
SymbolKind
:
extHostTypes
.
SymbolKind
,
SymbolTag
:
extHostTypes
.
SymbolTag
,
Task
:
extHostTypes
.
Task
,
Task2
:
extHostTypes
.
Task
,
TaskGroup
:
extHostTypes
.
TaskGroup
,
TaskPanelKind
:
extHostTypes
.
TaskPanelKind
,
TaskRevealKind
:
extHostTypes
.
TaskRevealKind
,
...
...
src/vs/workbench/api/common/extHostTask.ts
浏览文件 @
0de8d519
...
...
@@ -269,8 +269,8 @@ export namespace TaskDTO {
presentationOptions
:
TaskPresentationOptionsDTO
.
from
(
value
.
presentationOptions
),
problemMatchers
:
value
.
problemMatchers
,
hasDefinedMatchers
:
(
value
as
types
.
Task
).
hasDefinedMatchers
,
runOptions
:
(
<
vscode
.
Task
>
value
).
runOptions
?
(
<
vscode
.
Task
>
value
)
.
runOptions
:
{
reevaluateOnRerun
:
true
},
detail
:
(
<
vscode
.
Task2
>
value
)
.
detail
runOptions
:
value
.
runOptions
?
value
.
runOptions
:
{
reevaluateOnRerun
:
true
},
detail
:
value
.
detail
};
return
result
;
}
...
...
src/vs/workbench/api/common/extHostTypes.ts
浏览文件 @
0de8d519
...
...
@@ -1875,7 +1875,7 @@ export class CustomExecution implements vscode.CustomExecution {
}
@
es5ClassCompat
export
class
Task
implements
vscode
.
Task
2
{
export
class
Task
implements
vscode
.
Task
{
private
static
ExtensionCallbackType
:
string
=
'
customExecution
'
;
private
static
ProcessType
:
string
=
'
process
'
;
...
...
src/vs/workbench/api/node/extHostTask.ts
浏览文件 @
0de8d519
...
...
@@ -99,7 +99,7 @@ export class ExtHostTask extends ExtHostTaskBase {
// The ID is calculated on the main thread task side, so, let's call into it here.
// We need the task id's pre-computed for custom task executions because when OnDidStartTask
// is invoked, we have to be able to map it back to our data.
taskIdPromises
.
push
(
this
.
addCustomExecution
(
taskDTO
,
<
vscode
.
Task2
>
task
,
true
));
taskIdPromises
.
push
(
this
.
addCustomExecution
(
taskDTO
,
task
,
true
));
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录