Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
7c1dd383
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,发现更多精彩内容 >>
提交
7c1dd383
编写于
11月 23, 2018
作者:
A
Alex Ross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename interfaces in taskConfiguration.ts to remove duplicates
上级
18fb0669
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
src/vs/workbench/parts/tasks/node/taskConfiguration.ts
src/vs/workbench/parts/tasks/node/taskConfiguration.ts
+13
-13
未找到文件。
src/vs/workbench/parts/tasks/node/taskConfiguration.ts
浏览文件 @
7c1dd383
...
...
@@ -67,7 +67,7 @@ export interface ShellConfiguration {
quoting
?:
ShellQuotingOptions
;
}
export
interface
CommandOptions
{
export
interface
CommandOptions
Config
{
/**
* The current working directory of the executed program or shell.
* If omitted VSCode's current workspace root is used.
...
...
@@ -86,7 +86,7 @@ export interface CommandOptions {
shell
?:
ShellConfiguration
;
}
export
interface
PresentationOptions
{
export
interface
PresentationOptions
Config
{
/**
* Controls whether the terminal executing a task is brought to front or not.
* Defaults to `RevealKind.Always`.
...
...
@@ -119,7 +119,7 @@ export interface PresentationOptions {
clear
?:
boolean
;
}
export
interface
RunOptions
{
export
interface
RunOptions
Config
{
rerunBehavior
?:
string
;
}
...
...
@@ -178,7 +178,7 @@ export interface LegacyCommandProperties {
/**
* @deprecated Use presentation instead
*/
terminal
?:
PresentationOptions
;
terminal
?:
PresentationOptions
Config
;
/**
* @deprecated Use inline commands.
...
...
@@ -232,7 +232,7 @@ export interface BaseCommandProperties {
/**
* The command options used when the command is executed. Can be omitted.
*/
options
?:
CommandOptions
;
options
?:
CommandOptions
Config
;
/**
* The arguments passed to the command or additional arguments passed to the
...
...
@@ -305,12 +305,12 @@ export interface ConfigurationProperties {
/**
* Controls the behavior of the used terminal
*/
presentation
?:
PresentationOptions
;
presentation
?:
PresentationOptions
Config
;
/**
* Controls shell options.
*/
options
?:
CommandOptions
;
options
?:
CommandOptions
Config
;
/**
* The problem matcher(s) to use to capture problems in the tasks
...
...
@@ -321,7 +321,7 @@ export interface ConfigurationProperties {
/**
* Task run options. Control run related properties.
*/
runOptions
?:
RunOptions
;
runOptions
?:
RunOptions
Config
;
}
export
interface
CustomTask
extends
CommandProperties
,
ConfigurationProperties
{
...
...
@@ -368,7 +368,7 @@ export interface BaseTaskRunnerConfiguration {
/**
* The command options used when the command is executed. Can be omitted.
*/
options
?:
CommandOptions
;
options
?:
CommandOptions
Config
;
/**
* The arguments passed to the command. Can be omitted.
...
...
@@ -398,7 +398,7 @@ export interface BaseTaskRunnerConfiguration {
/**
* Controls the behavior of the used terminal
*/
presentation
?:
PresentationOptions
;
presentation
?:
PresentationOptions
Config
;
/**
* If set to false the task name is added as an additional argument to the
...
...
@@ -698,9 +698,9 @@ namespace ShellConfiguration {
namespace
CommandOptions
{
const
properties
:
MetaData
<
Tasks
.
CommandOptions
,
Tasks
.
ShellConfiguration
>
[]
=
[{
property
:
'
cwd
'
},
{
property
:
'
env
'
},
{
property
:
'
shell
'
,
type
:
ShellConfiguration
}];
const
defaults
:
CommandOptions
=
{
cwd
:
'
${workspaceFolder}
'
};
const
defaults
:
CommandOptions
Config
=
{
cwd
:
'
${workspaceFolder}
'
};
export
function
from
(
this
:
void
,
options
:
CommandOptions
,
context
:
ParseContext
):
Tasks
.
CommandOptions
{
export
function
from
(
this
:
void
,
options
:
CommandOptions
Config
,
context
:
ParseContext
):
Tasks
.
CommandOptions
{
let
result
:
Tasks
.
CommandOptions
=
{};
if
(
options
.
cwd
!==
void
0
)
{
if
(
Types
.
isString
(
options
.
cwd
))
{
...
...
@@ -759,7 +759,7 @@ namespace CommandConfiguration {
const
properties
:
MetaData
<
Tasks
.
PresentationOptions
,
void
>
[]
=
[{
property
:
'
echo
'
},
{
property
:
'
reveal
'
},
{
property
:
'
focus
'
},
{
property
:
'
panel
'
},
{
property
:
'
showReuseMessage
'
},
{
property
:
'
clear
'
}];
interface
PresentationOptionsShape
extends
LegacyCommandProperties
{
presentation
?:
PresentationOptions
;
presentation
?:
PresentationOptions
Config
;
}
export
function
from
(
this
:
void
,
config
:
PresentationOptionsShape
,
context
:
ParseContext
):
Tasks
.
PresentationOptions
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录