提交 639cc3fb 编写于 作者: A Alex Ross

Handle composite tasks with a presentation and no command

Fixes #70774
上级 bb0efb0a
......@@ -932,7 +932,10 @@ namespace CommandConfiguration {
}
function fromBase(this: void, config: BaseCommandConfiguationShape, context: ParseContext): Tasks.CommandConfiguration | undefined {
let name: Tasks.CommandString = ShellString.from(config.command)!;
let name: Tasks.CommandString | undefined = ShellString.from(config.command);
if (name === undefined) {
return undefined;
}
let runtime: Tasks.RuntimeType;
if (Types.isString(config.type)) {
if (config.type === 'shell' || config.type === 'process') {
......@@ -947,7 +950,7 @@ namespace CommandConfiguration {
}
let result: Tasks.CommandConfiguration = {
name: name!,
name: name,
runtime: runtime!,
presentation: PresentationOptions.from(config, context)!
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册