From 900a04164736ecbab344370b8001d9fc3f4549ac Mon Sep 17 00:00:00 2001 From: "Asad. Gharighi" Date: Mon, 14 Oct 2024 07:24:00 +0330 Subject: [PATCH] Generate language server enum settings as const string choices (#4517) --- scripts/lsp-generate-settings.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lsp-generate-settings.el b/scripts/lsp-generate-settings.el index 57ab899b88..77e7a42908 100644 --- a/scripts/lsp-generate-settings.el +++ b/scripts/lsp-generate-settings.el @@ -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)