From d0ba05a10b3a7313e2199b53eebd9f280d9d0a34 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 31 Jan 2024 22:20:52 +0100 Subject: [PATCH] spec: added schema header --- internal/spec/spec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/spec/spec.go b/internal/spec/spec.go index 25bb037e0..a5cb978df 100644 --- a/internal/spec/spec.go +++ b/internal/spec/spec.go @@ -8,10 +8,10 @@ import ( "gopkg.in/yaml.v3" ) -// Snippet generates the spec file. +// Spec generates the spec file. func Spec(cmd *cobra.Command) string { m, _ := yaml.Marshal(command(cmd)) - return string(m) + return "# yaml-language-server: $schema=https://carapace.sh/schemas/command.json\n" + string(m) } func command(cmd *cobra.Command) Command {