mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: move vscode local out of experiments (#5773)
We've been dogfooding the VS Code extension for a while, and it seems stable enough that it's overall positive to release!
This commit is contained in:
@@ -223,8 +223,13 @@ func (g *Generator) generateAll() (*TypescriptTypes, error) {
|
||||
sort.Strings(values)
|
||||
var s strings.Builder
|
||||
_, _ = s.WriteString(g.posLine(v))
|
||||
joined := strings.Join(values, " | ")
|
||||
if joined == "" {
|
||||
// It's possible an enum has no values.
|
||||
joined = "never"
|
||||
}
|
||||
_, _ = s.WriteString(fmt.Sprintf("export type %s = %s\n",
|
||||
name, strings.Join(values, " | "),
|
||||
name, joined,
|
||||
))
|
||||
|
||||
var pluralName string
|
||||
|
||||
Reference in New Issue
Block a user