LXC redirecting profile into text file fails (identified as vscode terminal problem)

Redirecting a profile into a text file results in an empty file. I’m logged into my own account on my every-day workstation. I swear this used to work. But I’ve had a few months away from lxc. I am now on Ubuntu 20.04.1 LTS - was on 18.04.x LTS

Just discovered it works in bash, and works in zsh terminal. Not under bash or zsh in vscode terminal:

% lxc profile show default > lxc-default-profile.yml
% wc lxc-default-profile.yml 
 14  26 209 lxc-default-profile.yml

I’ll now report in vscode forums. will leave it here in-case it helps some-one else trouble-shoot.

% lxc profile show default > lxd-profile-default.yaml

% wc lxd-profile-default.yaml 
> 0 0 0 lxd-profile-default.yaml

My platform:

% zsh --version   
> zsh 5.8 (x86_64-ubuntu-linux-gnu)

% lsb_release -d
>Description:    Ubuntu 20.04.1 LTS

% lxc --version 
% snap info lxd | grep installed
> installed:          4.7                    (18137) 72MB 

reported on vscode at

Seems to be a reproducible bug of the snap-installed versions of Visual Studio Code