mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fixes #46764: Missing quoting in tasks.json makes all other tasks disappear
This commit is contained in:
parent
38834320e3
commit
4e7a6812ae
|
@ -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;
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue