Skip to content

Commit

Permalink
feat(scaffold): add a code comment for language server
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Dec 14, 2024
1 parent 951e6fb commit e720670
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/scaffold/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func aquaGR(ctx context.Context, pkgName, pkgFilePath, rgFilePath string, cmds s
return fmt.Errorf("create a file %s: %w", rgFilePath, err)
}
defer outFile.Close()
if _, err := outFile.WriteString("# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/registry.json\n"); err != nil {
return fmt.Errorf("write a code comment for yaml-language-server: %w", err)
}
var cmd *exec.Cmd
command := "+ aqua gr --out-testdata " + pkgFilePath
args := []string{"gr", "-out-testdata", pkgFilePath}
Expand Down

0 comments on commit e720670

Please sign in to comment.