context.problemReporter.warn(nls.localize('ConfigurationParser.noShell','Warning: shell configuration is only supported when executing tasks in the terminal.'));
context.problemReporter.warn(nls.localize('taskConfiguration.shellArgs','Warning: the task \'{0}\' is a shell command and either the command name or one of its arguments has unescaped spaces. To ensure correct command line quoting please merge args into the command.',task.name));
'taskConfiguration.noCommandOrDependsOn','Error: the task \'{0}\' neither specifies a command or a dependsOn property. The task will be ignored. Its definition is:\n{1}',
'taskConfiguration.noCommandOrDependsOn','Error: the task \'{0}\' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:\n{1}',
@@ -13,32 +13,41 @@ import commonSchema from './jsonSchemaCommon';
constschema:IJSONSchema={
oneOf:[
{
'allOf':[
allOf:[
{
'type':'object',
'required':['version'],
'properties':{
'version':{
'type':'string',
'enum':['0.1.0'],
'description':nls.localize('JsonSchema.version','The config\'s version number')
type:'object',
required:['version'],
properties:{
version:{
type:'string',
enum:['0.1.0'],
description:nls.localize('JsonSchema.version','The config\'s version number')
},
'windows':{
'$ref':'#/definitions/taskRunnerConfiguration',
'description':nls.localize('JsonSchema.windows','Windows specific command configuration')
_runner:{
deprecationMessage:nls.localize('JsonSchema._runner','The runner has graduated. Use the offical runner property')
},
'osx':{
'$ref':'#/definitions/taskRunnerConfiguration',
'description':nls.localize('JsonSchema.mac','Mac specific command configuration')
runner:{
type:'string',
enum:['process','terminal'],
default:'process',
description:nls.localize('JsonSchema.runner','Defines whether the task is executed as a process and the output is shown in the output window or inside the terminal.')
},
'linux':{
'$ref':'#/definitions/taskRunnerConfiguration',
'description':nls.localize('JsonSchema.linux','Linux specific command configuration')
windows:{
$ref:'#/definitions/taskRunnerConfiguration',
description:nls.localize('JsonSchema.windows','Windows specific command configuration')
},
osx:{
$ref:'#/definitions/taskRunnerConfiguration',
description:nls.localize('JsonSchema.mac','Mac specific command configuration')
},
linux:{
$ref:'#/definitions/taskRunnerConfiguration',
description:nls.localize('JsonSchema.linux','Linux specific command configuration')
this.messageService.show(Severity.Info,nls.localize('TaskSystem.noHotSwap','Changing the task execution engine requires restarting VS Code. The change is ignored.'));
problemReporter.fatal(nls.localize('TaskSystem.configurationErrors','Error: the provided task configuration has validation errors and can\'t not be used. Please correct the errors first.'));