diff --git a/vscode/CHANGELOG.md b/vscode/CHANGELOG.md index 2b0dfc861df0..324c25cdc3fa 100644 --- a/vscode/CHANGELOG.md +++ b/vscode/CHANGELOG.md @@ -6,18 +6,19 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a ### Added -- Ollama: Added support for running Cody offline with local Ollama models. [pull/4691](https://github.com/sourcegraph/cody/pull/4691) -- Edit: Added support for users' to edit the applied edit before the diff view is removed. [pull/4684](https://github.com/sourcegraph/cody/pull/4684) -- Autocomplete: Added a new experimental throttling mechanism that should decrease latency. [pull/4735](https://github.com/sourcegraph/cody/pull/4735) - ### Fixed ### Changed +## 1.24.2 + +### Added + +- Autocomplete: Added a new experimental throttling mechanism that should decrease latency. [pull/4735](https://github.com/sourcegraph/cody/pull/4735) + +### Changed + - Autocomplete: When the last completion candidate is not applicable at the current document position, it remains in the cache even after the user backspaces or deletes characters from the current line. [pull/4704](https://github.com/sourcegraph/cody/pull/4704) -- Chat: Added a stop button and cleaned up the vertical space layout of the chat. [pull/4580](https://github.com/sourcegraph/cody/pull/4580) -- Autocomplete: Added a caching layer to Jaccard Similarity to reduce the load of context gathering during autocompletion. [pull/4608](https://github.com/sourcegraph/cody/pull/4608) -- Chat: Simplify the Enterprise docs in the model selector [pull/4745](https://github.com/sourcegraph/cody/pull/4745) - Autocomplete: Increase request manager cache size. [pull/4778](https://github.com/sourcegraph/cody/pull/4778) ## 1.24.1 diff --git a/vscode/package.json b/vscode/package.json index 69fa12dd00d3..a15d784e1dfd 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -3,7 +3,7 @@ "name": "cody-ai", "private": true, "displayName": "Cody: AI Coding Assistant with Autocomplete & Chat", - "version": "1.24.1", + "version": "1.24.2", "publisher": "sourcegraph", "license": "Apache-2.0", "icon": "resources/cody.png", diff --git a/vscode/src/completions/inline-completion-item-provider.ts b/vscode/src/completions/inline-completion-item-provider.ts index 15e54ce02c6c..2bbc7287b635 100644 --- a/vscode/src/completions/inline-completion-item-provider.ts +++ b/vscode/src/completions/inline-completion-item-provider.ts @@ -46,6 +46,7 @@ import { canReuseLastCandidateInDocumentContext, getRequestParamsFromLastCandidate, } from './reuse-last-candidate' +import { SmartThrottleService } from './smart-throttle' import { type AutocompleteInlineAcceptedCommandArgs, type AutocompleteItem, diff --git a/vscode/src/services/autocomplete-stage-counter-logger.test.ts b/vscode/src/services/autocomplete-stage-counter-logger.test.ts index adf4a6f338c2..9419c3bb4671 100644 --- a/vscode/src/services/autocomplete-stage-counter-logger.test.ts +++ b/vscode/src/services/autocomplete-stage-counter-logger.test.ts @@ -123,6 +123,7 @@ describe('AutocompleteStageCounter', () => { preDebounce: 0, preContextRetrieval: 0, preNetworkRequest: 0, + preSmartThrottle: 0, preFinalCancellationCheck: 0, preVisibilityCheck: 0, }, @@ -155,6 +156,7 @@ describe('AutocompleteStageCounter', () => { preCache: 1, preDebounce: 0, preContextRetrieval: 0, + preSmartThrottle: 0, preNetworkRequest: 0, preFinalCancellationCheck: 0, preVisibilityCheck: 0,