Skip to content

Commit

Permalink
Autocomplete: Fix feature flag init (#965)
Browse files Browse the repository at this point in the history
Feature flags in the provider init code won't evaluate right now because
I forgot to pass through the feature flag provider 🤦

We need a patch release out with this, pronto.

## Test plan

<img width="747" alt="Screenshot 2023-09-07 at 11 55 57"
src="https://github.com/sourcegraph/cody/assets/458591/d2ebc1af-cdc9-4bbf-a0cd-4cdbc619cc5d">


<!-- Required. See
https://docs.sourcegraph.com/dev/background-information/testing_principles.
-->
  • Loading branch information
philipp-spiess committed Sep 7, 2023
1 parent b48d6d6 commit 7316572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Starting from `0.2.0`, Cody is using `major.EVEN_NUMBER.patch` for release versi

### Fixed

- Fix feature flag initialization for autocomplete providers. [pull/965](https://github.com/sourcegraph/cody/pull/965)

### Changed

## [0.10.0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function createInlineCompletionItemProvider(
): Promise<vscode.Disposable> {
const disposables: vscode.Disposable[] = []

const providerConfig = await createProviderConfig(config, client)
const providerConfig = await createProviderConfig(config, client, featureFlagProvider)
if (providerConfig) {
const history = new VSCodeDocumentHistory()
const completionsProvider = new InlineCompletionItemProvider({
Expand Down

0 comments on commit 7316572

Please sign in to comment.