Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'Specifies whether the command is a shell command or an external program. Defaults to false if omitted.'
)
}
,
{
:
'#/definitions/shellConfiguration'
}
]
,
:
.
localize
(
'JsonSchema.tasks.isShellCommand.deprecated'
,
'The property isShellCommand is deprecated. Use the type property of the task and the shell property in the options instead. See also the 1.14 release notes.'
)
}
;
const
:
=
{
:
'boolean'
,
:
.
localize
(
'JsonSchema.hide'
,
'Hide this task from the run task quick pick'
)
,
default
:
true
}
;
const
:
=
{
:
'boolean'
,
:
.
localize
(
'JsonSchema.inAgents'
,
'Show this task in the Agents run action dropdown'
)
,
default
:
false
}
;
const
:
=
{
:
'object'
,
:
true
,
:
{
:
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.dependsOn.identifier'
,
'The task identifier.'
)
}
}
}
;
const
:
=
{
:
[
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.dependsOn.string'
,
'Another task this task depends on.'
)
}
,
,
{
:
'array'
,
:
.
localize
(
'JsonSchema.tasks.dependsOn.array'
,
'The other tasks this task depends on.'
)
,
:
{
:
[
{
:
'string'
,
}
,
]
}
}
]
,
:
.
localize
(
'JsonSchema.tasks.dependsOn'
,
'Either a string representing another task or an array of other tasks that this task depends on.'
)
}
;
const
:
=
{
:
'string'
,
enum
:
[
'parallel'
,
'sequence'
]
,
:
[
.
localize
(
'JsonSchema.tasks.dependsOrder.parallel'
,
'Run all dependsOn tasks in parallel.'
)
,
.
localize
(
'JsonSchema.tasks.dependsOrder.sequence'
,
'Run all dependsOn tasks in sequence.'
)
,
]
,
default
:
'parallel'
,
:
.
localize
(
'JsonSchema.tasks.dependsOrder'
,
'Determines the order of the dependsOn tasks for this task. Note that this property is not recursive.'
)
}
;
const
:
=
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.detail'
,
'An optional description of a task that shows in the Run Task quick pick as a detail.'
)
}
;
const
:
=
{
:
'object'
,
:
.
localize
(
'JsonSchema.tasks.icon'
,
'An optional icon for the task'
)
,
:
{
:
{
:
.
localize
(
'JsonSchema.tasks.icon.id'
,
'An optional codicon ID to use'
)
,
:
[
'string'
,
'null'
]
,
enum
:
Array
.
from
(
getAllCodicons
(
)
,
=>
.
)
,
:
Array
.
from
(
getAllCodicons
(
)
,
=>
`$(${icon.id})`
)
,
}
,
:
{
:
.
localize
(
'JsonSchema.tasks.icon.color'
,
'An optional color of the icon'
)
,
:
[
'string'
,
'null'
]
,
enum
:
[
'terminal.ansiBlack'
,
'terminal.ansiRed'
,
'terminal.ansiGreen'
,
'terminal.ansiYellow'
,
'terminal.ansiBlue'
,
'terminal.ansiMagenta'
,
'terminal.ansiCyan'
,
'terminal.ansiWhite'
]
,
}
,
}
}
;
const
:
=
{
:
'object'
,
default
:
{
:
true
,
:
'always'
,
:
false
,
:
'shared'
,
:
true
,
:
false
,
}
,
:
.
localize
(
'JsonSchema.tasks.presentation'
,
'Configures the panel that is used to present the task\'s output and reads its input.'
)
,
:
false
,
:
{
:
{
:
'boolean'
,
default
:
true
,
:
.
localize
(
'JsonSchema.tasks.presentation.echo'
,
'Controls whether the executed command is echoed to the panel. Default is true.'
)
}
,
:
{
:
'boolean'
,
default
:
false
,
:
.
localize
(
'JsonSchema.tasks.presentation.focus'
,
'Controls whether the panel takes focus. Default is false. If set to true the panel is revealed as well.'
'Controls whether to preserve the task name in the terminal after task completion.'
)
}
}
}
;
const
:
=
.
deepClone
(
)
;
.
=
.
localize
(
'JsonSchema.tasks.terminal'
,
'The terminal property is deprecated. Use presentation instead'
)
;
const
:
=
{
:
'string'
,
enum
:
[
'build'
,
'test'
,
'none'
]
,
:
[
.
localize
(
'JsonSchema.tasks.group.build'
,
'Marks the task as a build task accessible through the \'Run Build Task\' command.'
)
,
.
localize
(
'JsonSchema.tasks.group.test'
,
'Marks the task as a test task accessible through the \'Run Test Task\' command.'
)
,
.
localize
(
'JsonSchema.tasks.group.none'
,
'Assigns the task to no group'
)
]
,
:
.
localize
(
'JsonSchema.tasks.group.kind'
,
'The task\'s execution group.'
)
}
;
const
:
=
{
:
[
,
{
:
'object'
,
:
{
:
,
:
{
:
[
'boolean'
,
'string'
]
,
default
:
false
,
:
.
localize
(
'JsonSchema.tasks.group.isDefault'
,
'Defines if this task is the default task in the group, or a glob to match the file which should trigger this task.'
)
}
}
}
,
]
,
:
[
{
:
{
:
'build'
,
:
true
}
,
:
.
localize
(
'JsonSchema.tasks.group.defaultBuild'
,
'Marks the task as the default build task.'
)
}
,
{
:
{
:
'test'
,
:
true
}
,
:
.
localize
(
'JsonSchema.tasks.group.defaultTest'
,
'Marks the task as the default test task.'
)
}
]
,
:
.
localize
(
'JsonSchema.tasks.group'
,
'Defines to which execution group this task belongs to. It supports "build" to add it to the build group and "test" to add it to the test group.'
)
}
;
const
:
=
{
:
'string'
,
enum
:
[
'shell'
]
,
default
:
'process'
,
:
.
localize
(
'JsonSchema.tasks.type'
,
'Defines whether the task is run as a process or as a command inside a shell.'
)
}
;
const
:
=
{
:
[
{
:
[
{
:
'string'
}
,
{
:
'array'
,
:
{
:
'string'
}
,
:
.
localize
(
'JsonSchema.commandArray'
,
'The shell command to be executed. Array items will be joined using a space character'
)
}
]
}
,
{
:
'object'
,
:
[
'value'
,
'quoting'
]
,
:
{
:
{
:
[
{
:
'string'
}
,
{
:
'array'
,
:
{
:
'string'
}
,
:
.
localize
(
'JsonSchema.commandArray'
,
'The shell command to be executed. Array items will be joined using a space character'
)
}
]
,
:
.
localize
(
'JsonSchema.command.quotedString.value'
,
'The actual command value'
)
}
,
:
{
:
'string'
,
enum
:
[
'escape'
,
'strong'
,
'weak'
]
,
:
[
.
localize
(
'JsonSchema.tasks.quoting.escape'
,
'Escapes characters using the shell\'s escape character (e.g. ` under PowerShell and \\ under bash).'
)
,
.
localize
(
'JsonSchema.tasks.quoting.strong'
,
'Quotes the argument using the shell\'s strong quote character (e.g. \' under PowerShell and bash).'
)
,
.
localize
(
'JsonSchema.tasks.quoting.weak'
,
'Quotes the argument using the shell\'s weak quote character (e.g. " under PowerShell and bash).'
)
,
]
,
default
:
'strong'
,
:
.
localize
(
'JsonSchema.command.quotesString.quote'
,
'How the command value should be quoted.'
)
}
}
}
]
,
:
.
localize
(
'JsonSchema.command'
,
'The command to be executed. Can be an external program or a shell command.'
)
}
;
const
:
=
{
:
'array'
,
:
{
:
[
{
:
'string'
,
}
,
{
:
'object'
,
:
[
'value'
,
'quoting'
]
,
:
{
:
{
:
'string'
,
:
.
localize
(
'JsonSchema.args.quotedString.value'
,
'The actual argument value'
)
}
,
:
{
:
'string'
,
enum
:
[
'escape'
,
'strong'
,
'weak'
]
,
:
[
.
localize
(
'JsonSchema.tasks.quoting.escape'
,
'Escapes characters using the shell\'s escape character (e.g. ` under PowerShell and \\ under bash).'
)
,
.
localize
(
'JsonSchema.tasks.quoting.strong'
,
'Quotes the argument using the shell\'s strong quote character (e.g. \' under PowerShell and bash).'
)
,
.
localize
(
'JsonSchema.tasks.quoting.weak'
,
'Quotes the argument using the shell\'s weak quote character (e.g. " under PowerShell and bash).'
)
,
]
,
default
:
'strong'
,
:
.
localize
(
'JsonSchema.args.quotesString.quote'
,
'How the argument value should be quoted.'
)
}
}
}
]
}
,
:
.
localize
(
'JsonSchema.tasks.args'
,
'Arguments passed to the command when this task is invoked.'
)
}
;
const
:
=
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.label'
,
"The task's user interface label"
)
}
;
const
:
=
{
:
'string'
,
enum
:
[
'2.0.0'
]
,
:
.
localize
(
'JsonSchema.version'
,
'The config\'s version number.'
)
}
;
const
:
=
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.identifier'
,
'A user defined identifier to reference the task in launch.json or a dependsOn clause.'
)
,
:
.
localize
(
'JsonSchema.tasks.identifier.deprecated'
,
'User defined identifiers are deprecated. For custom task use the name as a reference and for tasks provided by extensions use their defined task identifier.'
)
}
;
const
:
=
{
:
'object'
,
:
false
,
:
{
:
{
:
'boolean'
,
:
.
localize
(
'JsonSchema.tasks.reevaluateOnRerun'
,
'Whether to reevaluate task variables on rerun.'
)
,
default
:
true
}
,
:
{
:
'string'
,
enum
:
[
'default'
,
'folderOpen'
,
'worktreeCreated'
]
,
:
.
localize
(
'JsonSchema.tasks.runOn'
,
'Configures when the task should be run. If set to folderOpen, then the task will be run automatically when the folder is opened. If set to worktreeCreated, then the task will be run automatically when an Agent Session worktree is created.'
)
,
default
:
'default'
}
,
:
{
:
'number'
,
:
.
localize
(
'JsonSchema.tasks.instanceLimit'
,
'The number of instances of the task that are allowed to run simultaneously.'
)
,
default
:
1
}
,
:
{
:
'string'
,
enum
:
[
'terminateNewest'
,
'terminateOldest'
,
'prompt'
,
'warn'
,
'silent'
]
,
:
[
.
localize
(
'JsonSchema.tasks.instancePolicy.terminateNewest'
,
'Terminates the newest instance.'
)
,
.
localize
(
'JsonSchema.tasks.instancePolicy.terminateOldest'
,
'Terminates the oldest instance.'
)
,
.
localize
(
'JsonSchema.tasks.instancePolicy.prompt'
,
'Asks which instance to terminate.'
)
,
.
localize
(
'JsonSchema.tasks.instancePolicy.warn'
,
'Does nothing but warns that the instance limit has been reached.'
)
,
.
localize
(
'JsonSchema.tasks.instancePolicy.silent'
,
'Does nothing.'
)
,
]
,
:
.
localize
(
'JsonSchema.tasks.instancePolicy'
,
'Policy to apply when instance limit is reached.'
)
,
default
:
'prompt'
}
}
,
:
.
localize
(
'JsonSchema.tasks.runOptions'
,
'The task\'s run related options'
)
}
;
const
=
.
!
;
const
:
=
.
deepClone
(
.
)
;
const
=
.
!
;
.
=
.
deepClone
(
.
)
;
const
:
=
{
:
'object'
,
:
false
,
:
{
:
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.taskLabel'
,
"The task's label"
)
}
,
:
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.taskName'
,
'The task\'s name'
)
,
:
.
localize
(
'JsonSchema.tasks.taskName.deprecated'
,
'The task\'s name property is deprecated. Use the label property instead.'
)
}
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
:
{
:
'boolean'
,
:
.
localize
(
'JsonSchema.tasks.background'
,
'Whether the executed task is kept alive and is running in the background.'
)
,
default
:
true
}
,
:
{
:
'boolean'
,
:
.
localize
(
'JsonSchema.tasks.promptOnClose'
,
'Whether the user is prompted when VS Code closes with a running task.'
)
,
default
:
false
}
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
:
,
:
{
:
'#/definitions/problemMatcherType'
,
:
.
localize
(
'JsonSchema.tasks.matchers'
,
'The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.'
)
}
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
:
.
deepClone
(
)
,
}
}
;
const
:
[
]
=
[
]
;
.
onReady
(
)
.
then
(
(
)
=>
{
updateTaskDefinitions
(
)
;
}
)
;
export
function
updateTaskDefinitions
(
)
{
for
(
const
of
.
all
(
)
)
{
// Check that we haven't already added this task type
if
(
.
find
(
=>
{
return
.
?.
?.
?.
?
.
?.
.
.
find
(
=>
===
.
)
:
undefined
;
}
)
)
{
continue
;
}
const
:
=
.
deepClone
(
)
;
const
=
.
!
;
// Since we do this after the schema is assigned we need to patch the refs.
.
=
{
:
'string'
,
:
.
localize
(
'JsonSchema.customizations.customizes.type'
,
'The task type to customize'
)
,
enum
:
[
.
]
}
;
if
(
.
)
{
.
=
.
.
slice
(
)
;
}
else
{
.
=
[
]
;
}
// Customized tasks require that the task type be set.
.
.
push
(
'type'
)
;
if
(
.
)
{
for
(
const
of
.
keys
(
.
)
)
{
const
=
.
[
]
;
[
]
=
.
deepClone
(
)
;
}
}
fixReferences
(
as
unknown
as
<
string
,
unknown
>
)
;
.
push
(
)
;
}
}
const
=
.
deepClone
(
)
;
.
!
.
=
{
:
'string'
,
:
.
localize
(
'JsonSchema.tasks.customize.deprecated'
,
'The customize property is deprecated. See the 1.14 release notes on how to migrate to the new task customization approach'
)
}
;
if
(
!
.
)
{
.
=
[
]
;
}
.
.
push
(
'customize'
)
;
.
push
(
)
;
const
=
.
deepClone
(
)
;
const
:
=
.
;
.
=
[
'label'
]
;
const
=
.
!
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
;
.
.
=
.
localize
(
'JsonSchema.tasks.taskName.deprecated'
,
'The task\'s name property is deprecated. Use the label property instead.'
)
;
// Clone the taskDescription for process task before setting a default to prevent two defaults #115281
const
=
.
deepClone
(
)
;
.
=
{
:
'My Task'
,
:
'shell'
,
:
'echo Hello'
,
:
[
]
}
;
.
.
=
.
localize
(
'JsonSchema.tasks.showOutput.deprecated'
,
'The property showOutput is deprecated. Use the reveal property inside the presentation property instead. See also the 1.14 release notes.'
)
;
.
.
=
.
localize
(
'JsonSchema.tasks.echoCommand.deprecated'
,
'The property echoCommand is deprecated. Use the echo property inside the presentation property instead. See also the 1.14 release notes.'
)
;
.
.
=
.
localize
(
'JsonSchema.tasks.suppressTaskName.deprecated'
,
'The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes.'
)
;
.
.
=
.
localize
(
'JsonSchema.tasks.isBuildCommand.deprecated'
,
'The property isBuildCommand is deprecated. Use the group property instead. See also the 1.14 release notes.'
)
;
.
.
=
.
localize
(
'JsonSchema.tasks.isTestCommand.deprecated'
,
'The property isTestCommand is deprecated. Use the group property instead. See also the 1.14 release notes.'
)
;
// Process tasks are almost identical schema-wise to shell tasks, but they are required to have a command
.
!
.
=
{
:
'string'
,
enum
:
[
'process'
]
,
default
:
'process'
,
:
.
localize
(
'JsonSchema.tasks.type'
,
'Defines whether the task is run as a process or as a command inside a shell.'
)
}
;
.
!
.
push
(
'command'
)
;
.
!
.
push
(
'type'
)
;
.
push
(
)
;
.
push
(
{
:
'#/definitions/taskDescription'
}
)
;
const
=
.
.
!
;
const
=
.
;
.
=
{
:
}
;
.
=
.
!
.
;
.
.
!
.
=
.
deepClone
(
)
;
.
.
!
.
=
.
deepClone
(
)
;
.
.
!
.
=
{
:
'#/definitions/shellConfiguration'
}
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
=
.
deepClone
(
)
;
.
.
=
.
localize
(
'JsonSchema.tasks.suppressTaskName.deprecated'
,
'The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes.'
)
;
.
.
=
.
localize
(
'JsonSchema.tasks.taskSelector.deprecated'
,
'The property taskSelector is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes.'