misc: add --list-options for vscode extension uis (#28)

* draft dump json in help

* polish feature
This commit is contained in:
ChristopherHX
2025-01-29 17:21:54 +01:00
committed by GitHub
parent 9d516e8fa2
commit 6e7e6baa8e
3 changed files with 29 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ type Notice struct {
}
func displayNotices(input *Input) {
// Avoid causing trouble parsing the json
if input.listOptions {
return
}
select {
case notices := <-noticesLoaded:
if len(notices) > 0 {