Skip to content

Commit

Permalink
Generate language server enum settings as const string choices (#4517)
Browse files Browse the repository at this point in the history
  • Loading branch information
asadoll authored Oct 14, 2024
1 parent 1bec655 commit 900a041
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lsp-generate-settings.el
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
ENUM is the value of enum key in vscode manifest."
(cond
((and enum (not (or (equal "boolean" type)
(equal '("boolean") type)))) `(choice (:tag ,@(append enum nil))))
(equal '("boolean") type))))
`(choice ,@(mapcar (lambda (e) `(const ,(format "\"%s\"" e))) enum)))
(t (pcase type
("boolean" 'boolean)
('("boolean") 'boolean)
Expand Down

0 comments on commit 900a041

Please sign in to comment.