Skip to content

Commit 4e7a681

Browse files
committed
Fixes microsoft#46764: Missing quoting in tasks.json makes all other tasks disappear
1 parent 3883432 commit 4e7a681

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/vs/workbench/parts/tasks/common/tasks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export enum ShellQuoting {
3434

3535
export namespace ShellQuoting {
3636
export function from(this: void, value: string): ShellQuoting {
37+
if (!value) {
38+
return ShellQuoting.Strong;
39+
}
3740
switch (value.toLowerCase()) {
3841
case 'escape':
3942
return ShellQuoting.Escape;

src/vs/workbench/parts/tasks/electron-browser/jsonSchema_v2.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ const command: IJSONSchema = {
156156
},
157157
{
158158
type: 'object',
159+
required: ['value', 'quoting'],
159160
properties: {
160161
value: {
161162
type: 'string',
@@ -188,6 +189,7 @@ const args: IJSONSchema = {
188189
},
189190
{
190191
type: 'object',
192+
required: ['value', 'quoting'],
191193
properties: {
192194
value: {
193195
type: 'string',

0 commit comments

Comments
 (0)