@@ -57,7 +57,7 @@ import { LanguageClient } from 'vscode-languageclient'
5757import { getLogger } from '../shared/logger/logger'
5858import { ToolkitError } from '../shared/errors'
5959import { useDeviceFlow } from './sso/ssoAccessTokenProvider'
60- import { getCacheDir , getCacheFileWatcher , getFlareCacheFileName , getStsCacheDir } from './sso/cache'
60+ import { getCacheDir , getCacheFileWatcher , getFlareCacheFileName } from './sso/cache'
6161import { VSCODE_EXTENSION_ID } from '../shared/extensions'
6262import { IamCredentials } from '@aws/language-server-runtimes-types'
6363import globals from '../shared/extensionGlobals'
@@ -89,8 +89,6 @@ export type LoginType = (typeof LoginTypes)[keyof typeof LoginTypes]
8989
9090export type cacheChangedEvent = 'delete' | 'create'
9191
92- export type stsCacheChangedEvent = 'delete' | 'create'
93-
9492export type Login = SsoLogin | IamLogin
9593
9694export type TokenSource = IamIdentityCenterSsoTokenSource | AwsBuilderIdSsoTokenSource
@@ -116,10 +114,6 @@ const IamProfileOptionsDefaults = {
116114 */
117115export class LanguageClientAuth {
118116 readonly #ssoCacheWatcher = getCacheFileWatcher ( getCacheDir ( ) , getFlareCacheFileName ( VSCODE_EXTENSION_ID . amazonq ) )
119- readonly #stsCacheWatcher = getCacheFileWatcher (
120- getStsCacheDir ( ) ,
121- getFlareCacheFileName ( VSCODE_EXTENSION_ID . amazonq )
122- )
123117
124118 constructor (
125119 private readonly client : LanguageClient ,
@@ -131,10 +125,6 @@ export class LanguageClientAuth {
131125 return this . #ssoCacheWatcher
132126 }
133127
134- public get stsCacheWatcher ( ) {
135- return this . #stsCacheWatcher
136- }
137-
138128 getSsoToken (
139129 tokenSource : TokenSource ,
140130 login : boolean = false ,
@@ -291,11 +281,6 @@ export class LanguageClientAuth {
291281 this . cacheWatcher . onDidCreate ( ( ) => cacheChangedHandler ( 'create' ) )
292282 this . cacheWatcher . onDidDelete ( ( ) => cacheChangedHandler ( 'delete' ) )
293283 }
294-
295- registerStsCacheWatcher ( stsCacheChangedHandler : ( event : stsCacheChangedEvent ) => any ) {
296- this . stsCacheWatcher . onDidCreate ( ( ) => stsCacheChangedHandler ( 'create' ) )
297- this . stsCacheWatcher . onDidDelete ( ( ) => stsCacheChangedHandler ( 'delete' ) )
298- }
299284}
300285
301286/**
0 commit comments