Skip to content

Commit 7237d2f

Browse files
committed
merge
2 parents 3966878 + 6e29cea commit 7237d2f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/amazonq/src/lsp/chat/activation.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ export async function activate(languageClient: LanguageClient, encryptionKey: Bu
9090
getLogger('amazonqLsp').error('failed request: aws/chat/manageSubscription: %O', e)
9191
})
9292
}),
93+
Commands.register('aws.amazonq.manageSubscription', () => {
94+
focusAmazonQPanel().catch((e) => languageClient.error(`[VSCode Client] focusAmazonQPanel() failed`))
95+
96+
languageClient
97+
.sendRequest('workspace/executeCommand', {
98+
command: 'aws/chat/manageSubscription',
99+
// arguments: [],
100+
})
101+
.catch((e) => {
102+
getLogger('amazonqLsp').error('failed request: aws/chat/manageSubscription: %O', e)
103+
})
104+
}),
93105
globals.logOutputChannel.onDidChangeLogLevel((logLevel) => {
94106
getLogger('amazonqLsp').info(`Local log level changed to ${logLevel}, notifying LSP`)
95107
void pushConfigUpdate(languageClient, {

0 commit comments

Comments
 (0)