boltex / leojs

Leo Literate Editor with Outline in Typescript
https://marketplace.visualstudio.com/items?itemName=boltex.leojs
MIT License
25 stars 1 forks source link

Block all commands except 'setLeoID' if leoID is 'None' or falsy. #40

Closed boltex closed 4 months ago

boltex commented 2 years ago

For now, cancelling leo id input sets it to 'None'.

But It should instead be set to empty string, and let the startup finish, but set the leoReadyFlag to false (making all commands unavailable except 'setLeoID') until a valid leo id is entered via the setLeoId command.

(Once a valid leoid is entered the 'setLeoID' command should then be hidden and unavailable.

boltex commented 1 year ago

Comments for commit https://github.com/boltex/leojs/commit/6079c8d35f69037062b05deb71573378a3b4737c references this issue, but that commit does not fix it adequately.