Skip to content

Commit

Permalink
Autocomplete: reduce the adaptive timeout (#3283)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerybugakov committed Mar 4, 2024
1 parent 88be6f4 commit 5aa1e9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vscode/src/completions/get-inline-completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ function getCompletionProvider(params: GetCompletionProvidersParams): Provider {
position,
dynamicMultilineCompletions: completionProviderConfig.dynamicMultilineCompletions,
hotStreak: completionProviderConfig.hotStreak,
// For the now the value is static and based on the average multiline completion latency.
firstCompletionTimeout: 1900,
// For now the value is static and based on the average multiline completion latency.
firstCompletionTimeout: 1500,
}

// Show more if manually triggered (but only showing 1 is faster, so we use it
Expand Down
2 changes: 1 addition & 1 deletion vscode/src/completions/request-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function createProvider(prefix: string) {
position,
multiline: false,
n: 1,
firstCompletionTimeout: 1900,
firstCompletionTimeout: 1500,
})
}

Expand Down

0 comments on commit 5aa1e9f

Please sign in to comment.