Merge pull request #7626 from shloimy-wiesel/fix/autocomplete-yaml-transform-flag

fix: Add missing transform option to YAML autocomplete configuration
This commit is contained in:
Dallin Romney 2025-09-11 15:08:54 -07:00 • committed by GitHub
commit dcf07a0cf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -251,6 +251,7 @@ The `models` section defines the language models used in your configuration. Mod
- `modelTimeout`: Model timeout for autocomplete requests in milliseconds.
- `maxSuffixPercentage`: Maximum percentage of prompt allocated for suffix.
- `prefixPercentage`: Percentage of input allocated for prefix.
- `transform`: If `false`, disables trimming of multiline completions. Defaults to `true`. Useful for models that generate better multiline completions without transformations.
- `template`: Custom template for autocomplete using Mustache syntax. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
- `onlyMyCode`: Only includes code within the repository for context.
- `useCache`: If `true`, enables caching for completions.

View file

@ -121,6 +121,7 @@ export const autocompleteOptionsSchema = z.object({
modelTimeout: z.number().optional(),
maxSuffixPercentage: z.number().optional(),
prefixPercentage: z.number().optional(),
transform: z.boolean().optional(),
template: z.string().optional(),
onlyMyCode: z.boolean().optional(),
useCache: z.boolean().optional(),