@@ -109,7 +109,7 @@ export class ManifestResolver {
109109 */
110110 private async checkDeprecation ( manifest : Manifest ) : Promise < void > {
111111 const prompts = AmazonQPromptSettings . instance
112- const lspId = `${ this . lsName } LspManifestMessage`
112+ const lspId = `${ this . lsName } LspManifestMessage` as keyof typeof amazonQPrompts
113113
114114 // Sanity check, if the lsName is changed then we also need to update the prompt keys in settings-amazonq.gen
115115 if ( ! ( lspId in amazonQPrompts ) ) {
@@ -119,19 +119,19 @@ export class ManifestResolver {
119119
120120 if ( ! manifest . isManifestDeprecated ) {
121121 // In case we got an new url, make sure the prompt is re-enabled for active manifests
122- await prompts . enablePrompt ( lspId as keyof typeof amazonQPrompts )
122+ await prompts . enablePrompt ( lspId )
123123 return
124124 }
125125
126126 const deprecationMessage = `"${ this . lsName } " manifest is deprecated. No future updates will be available.`
127127 logger . info ( deprecationMessage )
128128
129- if ( prompts . isPromptEnabled ( lspId as keyof typeof amazonQPrompts ) ) {
129+ if ( prompts . isPromptEnabled ( lspId ) ) {
130130 void vscode . window
131131 . showInformationMessage ( deprecationMessage , localizedText . ok , localizedText . dontShow )
132132 . then ( async ( button ) => {
133133 if ( button === localizedText . dontShow ) {
134- await prompts . disablePrompt ( lspId as keyof typeof amazonQPrompts )
134+ await prompts . disablePrompt ( lspId )
135135 }
136136 } )
137137 }
0 commit comments