Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
8469eadf
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,发现更多精彩内容 >>
提交
8469eadf
编写于
5月 14, 2018
作者:
D
Dirk Baeumer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes 47317: Can't use long commands in tasks. Used to work in previous release.
上级
5d12f531
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
45 addition
and
11 deletion
+45
-11
src/vs/workbench/parts/tasks/electron-browser/jsonSchema_v2.ts
...s/workbench/parts/tasks/electron-browser/jsonSchema_v2.ts
+24
-2
src/vs/workbench/parts/tasks/node/taskConfiguration.ts
src/vs/workbench/parts/tasks/node/taskConfiguration.ts
+21
-9
未找到文件。
src/vs/workbench/parts/tasks/electron-browser/jsonSchema_v2.ts
浏览文件 @
8469eadf
...
@@ -152,14 +152,36 @@ const taskType: IJSONSchema = {
...
@@ -152,14 +152,36 @@ const taskType: IJSONSchema = {
const
command
:
IJSONSchema
=
{
const
command
:
IJSONSchema
=
{
oneOf
:
[
oneOf
:
[
{
{
type
:
'
string
'
,
oneOf
:
[
{
type
:
'
string
'
},
{
type
:
'
array
'
,
items
:
{
type
:
'
string
'
},
description
:
nls
.
localize
(
'
JsonSchema.commandArray
'
,
'
The shell command to be executed. Array items will be joined using a space character
'
)
}
]
},
},
{
{
type
:
'
object
'
,
type
:
'
object
'
,
required
:
[
'
value
'
,
'
quoting
'
],
required
:
[
'
value
'
,
'
quoting
'
],
properties
:
{
properties
:
{
value
:
{
value
:
{
type
:
'
string
'
,
oneOf
:
[
{
type
:
'
string
'
},
{
type
:
'
array
'
,
items
:
{
type
:
'
string
'
},
description
:
nls
.
localize
(
'
JsonSchema.commandArray
'
,
'
The shell command to be executed. Array items will be joined using a space character
'
)
}
],
description
:
nls
.
localize
(
'
JsonSchema.command.quotedString.value
'
,
'
The actual command value
'
)
description
:
nls
.
localize
(
'
JsonSchema.command.quotedString.value
'
,
'
The actual command value
'
)
},
},
quoting
:
{
quoting
:
{
...
...
src/vs/workbench/parts/tasks/node/taskConfiguration.ts
浏览文件 @
8469eadf
...
@@ -182,14 +182,20 @@ export interface LegacyCommandProperties {
...
@@ -182,14 +182,20 @@ export interface LegacyCommandProperties {
isShellCommand
?:
boolean
|
ShellConfiguration
;
isShellCommand
?:
boolean
|
ShellConfiguration
;
}
}
export
type
CommandString
=
string
|
{
value
:
string
,
quoting
:
'
escape
'
|
'
strong
'
|
'
weak
'
};
export
type
CommandString
=
string
|
string
[]
|
{
value
:
string
|
string
[]
,
quoting
:
'
escape
'
|
'
strong
'
|
'
weak
'
};
export
namespace
CommandString
{
export
namespace
CommandString
{
export
function
value
(
value
:
CommandString
):
string
{
export
function
value
(
value
:
CommandString
):
string
{
if
(
Types
.
isString
(
value
))
{
if
(
Types
.
isString
(
value
))
{
return
value
;
return
value
;
}
else
if
(
Types
.
isStringArray
(
value
))
{
return
value
.
join
(
'
'
);
}
else
{
}
else
{
return
value
.
value
;
if
(
Types
.
isString
(
value
.
value
))
{
return
value
.
value
;
}
else
{
return
value
.
value
.
join
(
'
'
);
}
}
}
}
}
}
}
...
@@ -787,14 +793,20 @@ namespace CommandConfiguration {
...
@@ -787,14 +793,20 @@ namespace CommandConfiguration {
}
}
if
(
Types
.
isString
(
value
))
{
if
(
Types
.
isString
(
value
))
{
return
value
;
return
value
;
}
else
if
(
Types
.
isStringArray
(
value
))
{
return
value
.
join
(
'
'
);
}
else
{
let
quoting
=
Tasks
.
ShellQuoting
.
from
(
value
.
quoting
);
let
result
=
Types
.
isString
(
value
.
value
)
?
value
.
value
:
Types
.
isStringArray
(
value
.
value
)
?
value
.
value
.
join
(
'
'
)
:
undefined
;
if
(
result
)
{
return
{
value
:
result
,
quoting
:
quoting
};
}
else
{
return
undefined
;
}
}
}
if
(
Types
.
isString
(
value
.
value
))
{
return
{
value
:
value
.
value
,
quoting
:
Tasks
.
ShellQuoting
.
from
(
value
.
quoting
)
};
}
return
undefined
;
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录