Do not add empty tasks to inventory (#8180)

I ran into this when trying out which keybindings work and accidentally
added empty tasks. They get then added to the task inventory and
displayed in the picker.

Release Notes:

- Fixed empty tasks being added to the list of tasks when using `task:
spawn`

---------

Co-authored-by: Kirill <kirill@zed.dev>
583d85cf66Thorsten Ball committed on 2/22/2024, 10:21:19 AM· committed by GitHubparent36586b7
1 file changedLine totals unavailable