Fixes #46764: Missing quoting in tasks.json makes all other tasks disappear

This commit is contained in:
Dirk Baeumer 2018-03-28 15:23:34 +02:00
parent 38834320e3
commit 4e7a6812ae
2 changed files with 5 additions and 0 deletions

View file

@ -34,6 +34,9 @@ export enum ShellQuoting {
export namespace ShellQuoting {
export function from(this: void, value: string): ShellQuoting {
if (!value) {
return ShellQuoting.Strong;
}
switch (value.toLowerCase()) {
case 'escape':
return ShellQuoting.Escape;

View file

@ -156,6 +156,7 @@ const command: IJSONSchema = {
},
{
type: 'object',
required: ['value', 'quoting'],
properties: {
value: {
type: 'string',
@ -188,6 +189,7 @@ const args: IJSONSchema = {
},
{
type: 'object',
required: ['value', 'quoting'],
properties: {
value: {
type: 'string',