tools/goplssetting: use text note instead of emoji for section
Emoji is fun, but its usability is questionable.
Switch back to text-based note to mark experimental/debugging settings.
Change-Id: Ie22dfc17bcbb5d9b37b04d484f4842568f64d3f3
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/273029
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
diff --git a/tools/goplssetting/main.go b/tools/goplssetting/main.go
index 5ce729b..e294890 100644
--- a/tools/goplssetting/main.go
+++ b/tools/goplssetting/main.go
@@ -127,8 +127,8 @@
opts := []*OptionJSON{}
for _, v := range options {
- if emoji := sectionEmoji(v.section); emoji != "" {
- v.OptionJSON.Doc = emoji + " " + v.OptionJSON.Doc
+ if name := sectionName(v.section); name != "" {
+ v.OptionJSON.Doc = name + " " + v.OptionJSON.Doc
}
opts = append(opts, v.OptionJSON)
}
@@ -147,12 +147,12 @@
return 1000
}
-func sectionEmoji(section string) string {
+func sectionName(section string) string {
switch section {
case "Experimental":
- return "๐งช"
+ return "(Experimental)"
case "Debugging":
- return "๐"
+ return "(For Debugging)"
}
return ""
}