Skip to content

Commit 05cde57

Browse files
authored
fix(lsp): send extension version to Q LSP aws#7279
## Problem Extension version sent to Q LSP is hardcoded. ## Solution Ssend the actual extension version BEFORE: aws-sdk-nodejs/2.1692.0 darwin/v23.10.0 AWS-Language-Servers AWS-CodeWhisperer/0.1.0 AmazonQ-For-VSCode/0.0.1 Visual-Studio-Code---Insiders/1.100.0-insider ClientId/c342ab45-6aba-4118-b48c-44dcedb10a78 promise AFTER aws-sdk-nodejs/2.1692.0 darwin/v23.10.0 AWS-Language-Servers AWS-CodeWhisperer/0.1.0 AmazonQ-For-VSCode/testPluginVersion Visual-Studio-Code---Insiders/1.100.0-insider ClientId/c342ab45-6aba-4118-b48c-44dcedb10a78 promise
1 parent a14b9a2 commit 05cde57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import {
3434
isAmazonInternalOs,
3535
fs,
3636
getClientId,
37+
extensionVersion,
3738
} from 'aws-core-vscode/shared'
3839
import { processUtils } from 'aws-core-vscode/shared'
3940
import { activate } from './chat/activation'
@@ -119,7 +120,7 @@ export async function startLanguageServer(
119120
version: version,
120121
extension: {
121122
name: 'AmazonQ-For-VSCode',
122-
version: '0.0.1',
123+
version: extensionVersion,
123124
},
124125
clientId: getClientId(globals.globalState),
125126
},

0 commit comments

Comments
 (0)