Skip to content

Commit eddce96

Browse files
committed
clean up
1 parent ae74307 commit eddce96

File tree

4 files changed

+44
-54
lines changed

4 files changed

+44
-54
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class LspClient {
103103
}
104104
}
105105

106-
async queryBM25(query: string, path: string) {
106+
async queryInlineProjectContext(query: string, path: string) {
107107
try {
108108
const request = JSON.stringify({
109109
query: query,
@@ -113,7 +113,7 @@ export class LspClient {
113113
let resp: any = await this.client?.sendRequest(QueryInlineProjectContextRequestType, encrpted)
114114
return resp
115115
} catch (e) {
116-
getLogger().error(`LspClient: query error: ${e}`)
116+
getLogger().error(`LspClient: queryInlineProjectContext error: ${e}`)
117117
throw e
118118
}
119119
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ export class LspController {
303303
return resp
304304
}
305305

306-
async queryBM25(query: string, path: string) {
306+
async queryInlineProjectContext(query: string, path: string) {
307307
try {
308-
return await LspClient.instance.queryBM25(query, path)
308+
return await LspClient.instance.queryInlineProjectContext(query, path)
309309
} catch (e) {
310310
return []
311311
}

packages/core/src/codewhisperer/util/supplementalContext/crossFileContextUtil.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,9 @@ export async function fetchSupplementalContextForSrcV2(
7676
): Promise<Pick<CodeWhispererSupplementalContext, 'supplementalContextItems' | 'strategy'> | undefined> {
7777
const inputChunkContent = getInputChunk(editor)
7878

79-
const bm25Response: { content: string; score: number; filePath: string }[] = await LspController.instance.queryBM25(
80-
inputChunkContent.content,
81-
editor.document.uri.fsPath
82-
)
79+
const bm25Response: { content: string; score: number; filePath: string }[] =
80+
await LspController.instance.queryInlineProjectContext(inputChunkContent.content, editor.document.uri.fsPath)
8381
getLogger().info(JSON.stringify(bm25Response))
84-
console.log(bm25Response)
8582

8683
const supContextItems: CodeWhispererSupplementalContextItem[] = []
8784
return {

packages/toolkit/package.json

Lines changed: 38 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3716,277 +3716,270 @@
37163716
"fontCharacter": "\\f1b4"
37173717
}
37183718
},
3719-
"aws-amazonq-transform-landing-page-icon": {
3720-
"description": "AWS Contributed Icon",
3721-
"default": {
3722-
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3723-
"fontCharacter": "\\f1b5"
3724-
}
3725-
},
37263719
"aws-amazonq-transform-logo": {
37273720
"description": "AWS Contributed Icon",
37283721
"default": {
37293722
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3730-
"fontCharacter": "\\f1b6"
3723+
"fontCharacter": "\\f1b5"
37313724
}
37323725
},
37333726
"aws-amazonq-transform-step-into-dark": {
37343727
"description": "AWS Contributed Icon",
37353728
"default": {
37363729
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3737-
"fontCharacter": "\\f1b7"
3730+
"fontCharacter": "\\f1b6"
37383731
}
37393732
},
37403733
"aws-amazonq-transform-step-into-light": {
37413734
"description": "AWS Contributed Icon",
37423735
"default": {
37433736
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3744-
"fontCharacter": "\\f1b8"
3737+
"fontCharacter": "\\f1b7"
37453738
}
37463739
},
37473740
"aws-amazonq-transform-variables-dark": {
37483741
"description": "AWS Contributed Icon",
37493742
"default": {
37503743
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3751-
"fontCharacter": "\\f1b9"
3744+
"fontCharacter": "\\f1b8"
37523745
}
37533746
},
37543747
"aws-amazonq-transform-variables-light": {
37553748
"description": "AWS Contributed Icon",
37563749
"default": {
37573750
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3758-
"fontCharacter": "\\f1ba"
3751+
"fontCharacter": "\\f1b9"
37593752
}
37603753
},
37613754
"aws-applicationcomposer-icon": {
37623755
"description": "AWS Contributed Icon",
37633756
"default": {
37643757
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3765-
"fontCharacter": "\\f1bb"
3758+
"fontCharacter": "\\f1ba"
37663759
}
37673760
},
37683761
"aws-applicationcomposer-icon-dark": {
37693762
"description": "AWS Contributed Icon",
37703763
"default": {
37713764
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3772-
"fontCharacter": "\\f1bc"
3765+
"fontCharacter": "\\f1bb"
37733766
}
37743767
},
37753768
"aws-apprunner-service": {
37763769
"description": "AWS Contributed Icon",
37773770
"default": {
37783771
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3779-
"fontCharacter": "\\f1bd"
3772+
"fontCharacter": "\\f1bc"
37803773
}
37813774
},
37823775
"aws-cdk-logo": {
37833776
"description": "AWS Contributed Icon",
37843777
"default": {
37853778
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3786-
"fontCharacter": "\\f1be"
3779+
"fontCharacter": "\\f1bd"
37873780
}
37883781
},
37893782
"aws-cloudformation-stack": {
37903783
"description": "AWS Contributed Icon",
37913784
"default": {
37923785
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3793-
"fontCharacter": "\\f1bf"
3786+
"fontCharacter": "\\f1be"
37943787
}
37953788
},
37963789
"aws-cloudwatch-log-group": {
37973790
"description": "AWS Contributed Icon",
37983791
"default": {
37993792
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3800-
"fontCharacter": "\\f1c0"
3793+
"fontCharacter": "\\f1bf"
38013794
}
38023795
},
38033796
"aws-codecatalyst-logo": {
38043797
"description": "AWS Contributed Icon",
38053798
"default": {
38063799
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3807-
"fontCharacter": "\\f1c1"
3800+
"fontCharacter": "\\f1c0"
38083801
}
38093802
},
38103803
"aws-codewhisperer-icon-black": {
38113804
"description": "AWS Contributed Icon",
38123805
"default": {
38133806
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3814-
"fontCharacter": "\\f1c2"
3807+
"fontCharacter": "\\f1c1"
38153808
}
38163809
},
38173810
"aws-codewhisperer-icon-white": {
38183811
"description": "AWS Contributed Icon",
38193812
"default": {
38203813
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3821-
"fontCharacter": "\\f1c3"
3814+
"fontCharacter": "\\f1c2"
38223815
}
38233816
},
38243817
"aws-codewhisperer-learn": {
38253818
"description": "AWS Contributed Icon",
38263819
"default": {
38273820
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3828-
"fontCharacter": "\\f1c4"
3821+
"fontCharacter": "\\f1c3"
38293822
}
38303823
},
38313824
"aws-ecr-registry": {
38323825
"description": "AWS Contributed Icon",
38333826
"default": {
38343827
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3835-
"fontCharacter": "\\f1c5"
3828+
"fontCharacter": "\\f1c4"
38363829
}
38373830
},
38383831
"aws-ecs-cluster": {
38393832
"description": "AWS Contributed Icon",
38403833
"default": {
38413834
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3842-
"fontCharacter": "\\f1c6"
3835+
"fontCharacter": "\\f1c5"
38433836
}
38443837
},
38453838
"aws-ecs-container": {
38463839
"description": "AWS Contributed Icon",
38473840
"default": {
38483841
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3849-
"fontCharacter": "\\f1c7"
3842+
"fontCharacter": "\\f1c6"
38503843
}
38513844
},
38523845
"aws-ecs-service": {
38533846
"description": "AWS Contributed Icon",
38543847
"default": {
38553848
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3856-
"fontCharacter": "\\f1c8"
3849+
"fontCharacter": "\\f1c7"
38573850
}
38583851
},
38593852
"aws-generic-attach-file": {
38603853
"description": "AWS Contributed Icon",
38613854
"default": {
38623855
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3863-
"fontCharacter": "\\f1c9"
3856+
"fontCharacter": "\\f1c8"
38643857
}
38653858
},
38663859
"aws-iot-certificate": {
38673860
"description": "AWS Contributed Icon",
38683861
"default": {
38693862
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3870-
"fontCharacter": "\\f1ca"
3863+
"fontCharacter": "\\f1c9"
38713864
}
38723865
},
38733866
"aws-iot-policy": {
38743867
"description": "AWS Contributed Icon",
38753868
"default": {
38763869
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3877-
"fontCharacter": "\\f1cb"
3870+
"fontCharacter": "\\f1ca"
38783871
}
38793872
},
38803873
"aws-iot-thing": {
38813874
"description": "AWS Contributed Icon",
38823875
"default": {
38833876
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3884-
"fontCharacter": "\\f1cc"
3877+
"fontCharacter": "\\f1cb"
38853878
}
38863879
},
38873880
"aws-lambda-function": {
38883881
"description": "AWS Contributed Icon",
38893882
"default": {
38903883
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3891-
"fontCharacter": "\\f1cd"
3884+
"fontCharacter": "\\f1cc"
38923885
}
38933886
},
38943887
"aws-mynah-MynahIconBlack": {
38953888
"description": "AWS Contributed Icon",
38963889
"default": {
38973890
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3898-
"fontCharacter": "\\f1ce"
3891+
"fontCharacter": "\\f1cd"
38993892
}
39003893
},
39013894
"aws-mynah-MynahIconWhite": {
39023895
"description": "AWS Contributed Icon",
39033896
"default": {
39043897
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3905-
"fontCharacter": "\\f1cf"
3898+
"fontCharacter": "\\f1ce"
39063899
}
39073900
},
39083901
"aws-mynah-logo": {
39093902
"description": "AWS Contributed Icon",
39103903
"default": {
39113904
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3912-
"fontCharacter": "\\f1d0"
3905+
"fontCharacter": "\\f1cf"
39133906
}
39143907
},
39153908
"aws-redshift-cluster": {
39163909
"description": "AWS Contributed Icon",
39173910
"default": {
39183911
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3919-
"fontCharacter": "\\f1d1"
3912+
"fontCharacter": "\\f1d0"
39203913
}
39213914
},
39223915
"aws-redshift-cluster-connected": {
39233916
"description": "AWS Contributed Icon",
39243917
"default": {
39253918
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3926-
"fontCharacter": "\\f1d2"
3919+
"fontCharacter": "\\f1d1"
39273920
}
39283921
},
39293922
"aws-redshift-database": {
39303923
"description": "AWS Contributed Icon",
39313924
"default": {
39323925
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3933-
"fontCharacter": "\\f1d3"
3926+
"fontCharacter": "\\f1d2"
39343927
}
39353928
},
39363929
"aws-redshift-redshift-cluster-connected": {
39373930
"description": "AWS Contributed Icon",
39383931
"default": {
39393932
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3940-
"fontCharacter": "\\f1d4"
3933+
"fontCharacter": "\\f1d3"
39413934
}
39423935
},
39433936
"aws-redshift-schema": {
39443937
"description": "AWS Contributed Icon",
39453938
"default": {
39463939
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3947-
"fontCharacter": "\\f1d5"
3940+
"fontCharacter": "\\f1d4"
39483941
}
39493942
},
39503943
"aws-redshift-table": {
39513944
"description": "AWS Contributed Icon",
39523945
"default": {
39533946
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3954-
"fontCharacter": "\\f1d6"
3947+
"fontCharacter": "\\f1d5"
39553948
}
39563949
},
39573950
"aws-s3-bucket": {
39583951
"description": "AWS Contributed Icon",
39593952
"default": {
39603953
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3961-
"fontCharacter": "\\f1d7"
3954+
"fontCharacter": "\\f1d6"
39623955
}
39633956
},
39643957
"aws-s3-create-bucket": {
39653958
"description": "AWS Contributed Icon",
39663959
"default": {
39673960
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3968-
"fontCharacter": "\\f1d8"
3961+
"fontCharacter": "\\f1d7"
39693962
}
39703963
},
39713964
"aws-schemas-registry": {
39723965
"description": "AWS Contributed Icon",
39733966
"default": {
39743967
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3975-
"fontCharacter": "\\f1d9"
3968+
"fontCharacter": "\\f1d8"
39763969
}
39773970
},
39783971
"aws-schemas-schema": {
39793972
"description": "AWS Contributed Icon",
39803973
"default": {
39813974
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3982-
"fontCharacter": "\\f1da"
3975+
"fontCharacter": "\\f1d9"
39833976
}
39843977
},
39853978
"aws-stepfunctions-preview": {
39863979
"description": "AWS Contributed Icon",
39873980
"default": {
39883981
"fontPath": "./resources/fonts/aws-toolkit-icons.woff",
3989-
"fontCharacter": "\\f1db"
3982+
"fontCharacter": "\\f1da"
39903983
}
39913984
}
39923985
},

0 commit comments

Comments
 (0)