@@ -30,8 +30,6 @@ import {
30
30
ResponseError ,
31
31
LSPErrorCodes ,
32
32
updateConfigurationRequestType ,
33
- GetMfaCodeParams ,
34
- GetMfaCodeResult ,
35
33
} from '@aws/language-server-runtimes/protocol'
36
34
import {
37
35
AuthUtil ,
@@ -58,7 +56,7 @@ import { processUtils } from 'aws-core-vscode/shared'
58
56
import { activate as activateChat } from './chat/activation'
59
57
import { activate as activeInlineChat } from '../inlineChat/activation'
60
58
import { AmazonQResourcePaths } from './lspInstaller'
61
- import { auth2 , getMfaTokenFromUser , getMfaSerialFromUser } from 'aws-core-vscode/auth'
59
+ import { auth2 } from 'aws-core-vscode/auth'
62
60
import { ConfigSection , isValidConfigSection , pushConfigUpdate , toAmazonQLSPLogLevel } from './config'
63
61
import { telemetry } from 'aws-core-vscode/telemetry'
64
62
import { SessionManager } from '../app/inline/sessionManager'
@@ -339,24 +337,6 @@ async function postStartLanguageServer(
339
337
}
340
338
)
341
339
342
- // Handler for when Flare needs to assume a role with MFA code
343
- client . onRequest (
344
- auth2 . notificationTypes . getMfaCode . method ,
345
- async ( params : GetMfaCodeParams ) : Promise < GetMfaCodeResult > => {
346
- if ( params . mfaSerial ) {
347
- await globals . globalState . update ( 'recentMfaSerial' , { mfaSerial : params . mfaSerial } )
348
- }
349
- const defaultMfaSerial = globals . globalState . tryGet ( 'recentMfaSerial' , Object , {
350
- mfaSerial : '' ,
351
- } ) . mfaSerial
352
- let mfaSerial = await getMfaSerialFromUser ( defaultMfaSerial , params . profileName )
353
- mfaSerial = mfaSerial . trim ( )
354
- await globals . globalState . update ( 'recentMfaSerial' , { mfaSerial : mfaSerial } )
355
- const mfaCode = await getMfaTokenFromUser ( mfaSerial , params . profileName )
356
- return { code : mfaCode ?? '' , mfaSerial : mfaSerial ?? '' }
357
- }
358
- )
359
-
360
340
const sendProfileToLsp = async ( ) => {
361
341
try {
362
342
const result = await client . sendRequest ( updateConfigurationRequestType . method , {
0 commit comments