Skip to content

Commit 1143245

Browse files
Merge master into feature/emr
2 parents 61149d2 + 4369fb5 commit 1143245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import vscode, { env, version } from 'vscode'
77
import * as nls from 'vscode-nls'
8-
import * as crypto from 'crypto'
98
import { LanguageClient, LanguageClientOptions, RequestType, State } from 'vscode-languageclient'
109
import { InlineCompletionManager } from '../app/inline/completion'
1110
import { AmazonQLspAuth, encryptionKey, notificationTypes } from './auth'
@@ -34,6 +33,7 @@ import {
3433
getOptOutPreference,
3534
isAmazonInternalOs,
3635
fs,
36+
getClientId,
3737
} from 'aws-core-vscode/shared'
3838
import { processUtils } from 'aws-core-vscode/shared'
3939
import { activate } from './chat/activation'
@@ -120,7 +120,7 @@ export async function startLanguageServer(
120120
name: 'AmazonQ-For-VSCode',
121121
version: '0.0.1',
122122
},
123-
clientId: crypto.randomUUID(),
123+
clientId: getClientId(globals.globalState),
124124
},
125125
awsClientCapabilities: {
126126
q: {

0 commit comments

Comments
 (0)