Type objects.assign

Use similar typings to `Object.assign`
This commit is contained in:
Matt Bierner
2018-11-30 16:44:22 -08:00
parent bdf3b644e0
commit 9d5987b0f7
4 changed files with 10 additions and 6 deletions

View File

@@ -336,7 +336,7 @@ namespace TaskDTO {
return undefined;
}
command.presentation = TaskPresentationOptionsDTO.to(task.presentationOptions);
command.presentation = Objects.assign(command.presentation || {}, { echo: true, reveal: RevealKind.Always, focus: false, panel: PanelKind.Shared });
command.presentation = Objects.assign(command.presentation || ({} as PresentationOptions), { echo: true, reveal: RevealKind.Always, focus: false, panel: PanelKind.Shared });
let source = TaskSourceDTO.to(task.source, workspace);