chore: clearer naming for useSuffix (#1702)

* chore: clearer naming for `useSuffix`

* schema updates
This commit is contained in:
Patrick Erichsen 2024-07-10 12:08:03 -05:00 • committed by GitHub
parent 4e04a257c2
commit 5d8f73bcd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 11 additions and 11 deletions

View file

@ -90,7 +90,7 @@ This is just another object like the ones in the `"models"` array of `config.jso
This object allows you to customize the behavior of tab-autocomplete. The available options are:
- `useCopyBuffer`: Determines whether the copy buffer will be considered when constructing the prompt. (Boolean)
- `useSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
- `useFileSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
- `maxPromptTokens`: The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context. (Number)
- `debounceDelay`: The delay in milliseconds before triggering autocomplete after a keystroke. (Number)
- `maxSuffixPercentage`: The maximum percentage of the prompt that can be dedicated to the suffix. (Number)

View file

@ -676,7 +676,7 @@ declare global {
export interface TabAutocompleteOptions {
disable: boolean;
useCopyBuffer: boolean;
useSuffix: boolean;
useFileSuffix: boolean;
maxPromptTokens: number;
debounceDelay: number;
maxSuffixPercentage: number;

2
core/index.d.ts vendored
View file

@ -769,7 +769,7 @@ export interface Reranker {
export interface TabAutocompleteOptions {
disable: boolean;
useCopyBuffer: boolean;
useSuffix: boolean;
useFileSuffix: boolean;
maxPromptTokens: number;
debounceDelay: number;
maxSuffixPercentage: number;

View file

@ -3,7 +3,7 @@ import { TabAutocompleteOptions } from "../index.js";
export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
disable: false,
useCopyBuffer: false,
useSuffix: true,
useFileSuffix: true,
maxPromptTokens: 1024,
prefixPercentage: 0.85,
maxSuffixPercentage: 0.25,

View file

@ -94,7 +94,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa
- `disable`: Disable autocomplete (can also be done from IDE settings)
- `template`: An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables. (String)
- `useCopyBuffer`: Determines whether the copy buffer will be considered when constructing the prompt. (Boolean)
- `useSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
- `useFileSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
- `maxPromptTokens`: The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context. (Number)
- `prefixPercentage`: The percentage of the input that should be dedicated to the prefix. (Number)
- `maxSuffixPercentage`: The maximum percentage of the prompt that can be dedicated to the suffix. (Number)

View file

@ -2071,7 +2071,7 @@
"type": "boolean",
"description": "Determines whether the copy buffer will be considered when contructing the prompt."
},
"useSuffix": {
"useFileSuffix": {
"type": "boolean",
"description": "Determines whether to use the file suffix in the prompt."
},

View file

@ -2071,7 +2071,7 @@
"type": "boolean",
"description": "Determines whether the copy buffer will be considered when contructing the prompt."
},
"useSuffix": {
"useFileSuffix": {
"type": "boolean",
"description": "Determines whether to use the file suffix in the prompt."
},

View file

@ -2071,7 +2071,7 @@
"type": "boolean",
"description": "Determines whether the copy buffer will be considered when contructing the prompt."
},
"useSuffix": {
"useFileSuffix": {
"type": "boolean",
"description": "Determines whether to use the file suffix in the prompt."
},

View file

@ -2326,7 +2326,7 @@
"type": "boolean",
"description": "Determines whether the copy buffer will be considered when contructing the prompt."
},
"useSuffix": {
"useFileSuffix": {
"type": "boolean",
"description": "Determines whether to use the file suffix in the prompt."
},

View file

@ -1,11 +1,11 @@
{
"name": "continue",
"name": "testname",
"version": "0.9.181",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"name": "testname",
"version": "0.9.181",
"license": "Apache-2.0",
"dependencies": {