@@ -61,7 +61,6 @@ import * as jose from 'jose'
61
61
import { AmazonQChatViewProvider } from './webviewProvider'
62
62
import { AuthUtil , ReferenceLogViewProvider } from 'aws-core-vscode/codewhisperer'
63
63
import { amazonQDiffScheme , AmazonQPromptSettings , messages , openUrl } from 'aws-core-vscode/shared'
64
- import { credentialsValidation } from 'aws-core-vscode/auth'
65
64
import {
66
65
DefaultAmazonQAppInitContext ,
67
66
messageDispatcher ,
@@ -328,26 +327,6 @@ export function registerMessageListeners(
328
327
}
329
328
break
330
329
case buttonClickRequestType . method : {
331
- if ( message . params . buttonId === 'paidtier-upgrade-q' ) {
332
- focusAmazonQPanel ( ) . catch ( ( e ) => languageClient . error ( `[VSCode Client] focusAmazonQPanel() failed` ) )
333
-
334
- const accountId = await vscode . window . showInputBox ( {
335
- title : 'Upgrade Amazon Q' ,
336
- prompt : 'Enter your 12-digit AWS account ID' ,
337
- placeHolder : '111111111111' ,
338
- validateInput : credentialsValidation . validateAwsAccount ,
339
- } )
340
-
341
- if ( accountId ) {
342
- languageClient . sendRequest ( 'workspace/executeCommand' , {
343
- command : 'aws/chat/manageSubscription' ,
344
- arguments : [ accountId ] ,
345
- } )
346
- } else {
347
- languageClient . error ( '[VSCode Client] user canceled or did not input AWS account id' )
348
- }
349
- }
350
-
351
330
const buttonResult = await languageClient . sendRequest < ButtonClickResult > (
352
331
buttonClickRequestType . method ,
353
332
message . params
0 commit comments