Skip to content

Commit 0c9dc99

Browse files
committed
remove connection metadata
1 parent de41e5f commit 0c9dc99

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { LanguageClient, LanguageClientOptions, RequestType } from 'vscode-langu
1010
import { InlineCompletionManager } from '../app/inline/completion'
1111
import { AmazonQLspAuth, encryptionKey, notificationTypes } from './auth'
1212
import {
13-
ConnectionMetadata,
1413
CreateFilesParams,
1514
DeleteFilesParams,
1615
DidChangeWorkspaceFoldersParams,
@@ -164,14 +163,6 @@ export async function startLanguageServer(
164163
const auth = new AmazonQLspAuth(client)
165164

166165
return client.onReady().then(async () => {
167-
// Request handler for when the server wants to know about the clients auth connnection. Must be registered before the initial auth init call
168-
client.onRequest<ConnectionMetadata, Error>(notificationTypes.getConnectionMetadata.method, () => {
169-
return {
170-
sso: {
171-
startUrl: AuthUtil.instance.auth.startUrl,
172-
},
173-
}
174-
})
175166
await auth.refreshConnection()
176167

177168
if (Experiments.instance.get('amazonqLSPInline', false)) {

0 commit comments

Comments
 (0)