hm. that’s odd. not sure what’s up but here’s what worked for me:
run the Particle: Create New Project command (docs)
once the new project loads, open ./src/<project name>.ino and copy+paste your application code
configure your project to use the platform (e.g. photon) and Device OS version (e.g. 1.4.0) that matches your target device (to update, click the items in the status bar - see screen grab below)
make sure your device is plugged in via usb and run the Particle: Flash application & Device OS (local) task (docs)
once the flash operation completes, run the Particle: Launch CLI command
in the terminal instance that launches, run particle list
Apologies for the delayed response. I got pulled away from my computer for a few days. Your solution worked for me. I must have set the original project up wrong somehow.