Skip to content

Commit 9b9bf61

Browse files
authored
fix(amazonq): "About" feature shows wrong extension name aws#4751
Problem: - If you are using the about from the amazon q extension it shows AWS Toolkit. e.g. "AWS Toolkit: 0.10.0" Solution: - If you are using the q extension then show Amazon Q Toolkit
1 parent 0568422 commit 9b9bf61

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/core/src/shared/extensionUtilities.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Ec2MetadataClient } from './clients/ec2MetadataClient'
1313
import { DefaultEc2MetadataClient } from './clients/ec2MetadataClient'
1414
import { extensionVersion, getCodeCatalystDevEnvId } from './vscode/env'
1515
import { DevSettings } from './settings'
16+
import globals from './extensionGlobals'
1617

1718
const localize = nls.loadMessageBundle()
1819

@@ -264,6 +265,12 @@ export async function aboutExtension(): Promise<void> {
264265
}
265266
}
266267

268+
function getProductName(): string {
269+
return globals.context.extension.id === VSCODE_EXTENSION_ID.amazonq
270+
? 'Amazon Q Toolkit'
271+
: `${getIdeProperties().company} Toolkit`
272+
}
273+
267274
/**
268275
* Returns a string that includes the OS, extension, and VS Code versions.
269276
*/
@@ -277,13 +284,13 @@ export function getExtEnvironmentDetails(): string {
277284

278285
const envDetails = localize(
279286
'AWS.message.toolkitInfo',
280-
'OS: {0} {1} {2}\n{3} extension host: {4}\n{5} Toolkit: {6}\n{7}{8}',
287+
'OS: {0} {1} {2}\n{3} extension host: {4}\n{5}: {6}\n{7}{8}',
281288
osType,
282289
osArch,
283290
osRelease,
284291
getIdeProperties().longName,
285292
vsCodeVersion,
286-
getIdeProperties().company,
293+
getProductName(),
287294
extensionVersion,
288295
node,
289296
electron

0 commit comments

Comments
 (0)