Skip to content

Commit 06050fe

Browse files
Merge master into feature/amazonqLSP
2 parents 0f163a3 + 7333d71 commit 06050fe

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export class LspController {
132132
amazonqIndexMemoryUsageInMB: usage ? usage.memoryUsage / (1024 * 1024) : undefined,
133133
amazonqIndexCpuUsagePercentage: usage ? usage.cpuUsage : undefined,
134134
amazonqIndexFileSizeInMB: totalSizeBytes / (1024 * 1024),
135+
amazonqVectorIndexEnabled: buildIndexConfig.isVectorIndexEnabled,
135136
credentialStartUrl: buildIndexConfig.startUrl,
136137
})
137138
} else {
@@ -141,6 +142,7 @@ export class LspController {
141142
result: 'Failed',
142143
amazonqIndexFileCount: 0,
143144
amazonqIndexFileSizeInMB: 0,
145+
amazonqVectorIndexEnabled: buildIndexConfig.isVectorIndexEnabled,
144146
reason: `Unknown`,
145147
})
146148
}
@@ -152,6 +154,7 @@ export class LspController {
152154
result: 'Failed',
153155
amazonqIndexFileCount: 0,
154156
amazonqIndexFileSizeInMB: 0,
157+
amazonqVectorIndexEnabled: buildIndexConfig.isVectorIndexEnabled,
155158
reason: `${error instanceof Error ? error.name : 'Unknown'}`,
156159
reasonDesc: `Error when building index. ${error instanceof Error ? error.message : error}`,
157160
})

packages/core/src/shared/telemetry/vscodeTelemetry.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
"type": "int",
5353
"description": "The sum of file sizes that were indexed in MB"
5454
},
55+
{
56+
"name": "amazonqVectorIndexEnabled",
57+
"type": "boolean",
58+
"description": "True if vector index is enabled"
59+
},
5560
{
5661
"name": "amazonqIndexFileCount",
5762
"type": "int",
@@ -624,6 +629,10 @@
624629
{
625630
"type": "credentialStartUrl",
626631
"required": false
632+
},
633+
{
634+
"type": "amazonqVectorIndexEnabled",
635+
"required": false
627636
}
628637
]
629638
},

0 commit comments

Comments
 (0)