Skip to content

Commit afec8b1

Browse files
committed
simplify
1 parent a32c09c commit afec8b1

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

packages/core/src/amazonq/lsp/lspController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export interface Manifest {
6464
targets: Target[]
6565
}[]
6666
}
67-
const manifestUrl = 'https://ducvaeoffl85c.cloudfront.net/manifest-0.1.18.json'
67+
const manifestUrl = 'https://ducvaeoffl85c.cloudfront.net/manifest-0.1.19.json'
6868
// this LSP client in Q extension is only going to work with these LSP server versions
69-
const supportedLspServerVersions = ['0.1.18']
69+
const supportedLspServerVersions = ['0.1.19']
7070

7171
const nodeBinName = process.platform === 'win32' ? 'node.exe' : 'node'
7272

packages/core/src/shared/featureConfig.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export class FeatureConfigProvider {
5353

5454
private _isDataCollectionGroup = false
5555

56-
private _isNewProjectContextGroup = false
57-
5856
constructor() {
5957
this.fetchFeatureConfigs().catch((e) => {
6058
getLogger().error('fetchFeatureConfigs failed: %s', (e as Error).message)
@@ -72,8 +70,9 @@ export class FeatureConfigProvider {
7270
}
7371

7472
isNewProjectContextGroup(): boolean {
75-
return this._isNewProjectContextGroup
73+
return this.featureConfigs.get(Features.projectContextFeature)?.variation === 'TREATMENT'
7674
}
75+
7776
public async listFeatureEvaluations(): Promise<ListFeatureEvaluationsResponse> {
7877
const request: ListFeatureEvaluationsRequest = {
7978
userContext: {
@@ -157,11 +156,6 @@ export class FeatureConfigProvider {
157156
globals.globalState.tryUpdate('aws.amazonq.workspaceIndexToggleOn', true)
158157
}
159158
}
160-
const projectContextFeatureValue = this.featureConfigs.get(Features.projectContextFeature)?.value
161-
.stringValue
162-
if (projectContextFeatureValue === 'TREATMENT') {
163-
this._isNewProjectContextGroup = true
164-
}
165159
} catch (e) {
166160
getLogger().error(`CodeWhisperer: Error when fetching feature configs ${e}`, e)
167161
}

0 commit comments

Comments
 (0)