@@ -15,7 +15,7 @@ import { addCodiconToString } from './textUtilities'
15
15
import { getIcon , codicon } from '../icons'
16
16
import globals from '../extensionGlobals'
17
17
import { openUrl } from './vsCodeUtils'
18
- import { PromptSettings , PromptName } from '../../shared/settings'
18
+ import { PromptSettings } from '../../shared/settings'
19
19
20
20
export const messages = {
21
21
editCredentials ( icon : boolean ) {
@@ -145,21 +145,18 @@ export async function showConfirmationMessage({
145
145
*
146
146
* @param message the line informing the user that they need to reauthenticate
147
147
* @param connect the text to display on the "connect" button
148
- * @param doNotShow the text to display on the "do not show again" button
149
148
* @param suppressId the ID of the prompt in
150
149
* @param reauthFunc the function called if the "connect" button is clicked
151
150
*/
152
151
export async function showReauthenticateMessage ( {
153
152
message,
154
153
connect,
155
- doNotShow,
156
154
suppressId,
157
155
reauthFunc,
158
156
} : {
159
157
message : string
160
158
connect : string
161
- doNotShow : string
162
- suppressId : PromptName
159
+ suppressId : Parameters < PromptSettings [ 'isPromptEnabled' ] > [ 0 ]
163
160
reauthFunc : ( ) => Promise < void >
164
161
} ) {
165
162
const settings = PromptSettings . instance
@@ -168,10 +165,10 @@ export async function showReauthenticateMessage({
168
165
return
169
166
}
170
167
171
- await vscode . window . showInformationMessage ( message , connect , doNotShow ) . then ( async resp => {
168
+ await vscode . window . showInformationMessage ( message , connect , localizedText . dontShow ) . then ( async resp => {
172
169
if ( resp === connect ) {
173
170
await reauthFunc ( )
174
- } else if ( resp === doNotShow ) {
171
+ } else if ( resp === localizedText . dontShow ) {
175
172
await settings . disablePrompt ( suppressId )
176
173
}
177
174
} )
0 commit comments