File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,24 @@ import * as vscode from 'vscode'
77import * as nls from 'vscode-nls'
88
99import { SearchParams } from '../shared/vscode/uriHandler'
10- import { showMessage } from '../shared/utilities/messages'
10+ import { showConfirmationMessage } from '../shared/utilities/messages'
1111import globals from '../shared/extensionGlobals'
12+ import { VSCODE_EXTENSION_ID } from '../shared/extensions'
1213
1314const localize = nls . loadMessageBundle ( )
1415
1516export function registerLambdaUriHandler ( ) {
1617 async function openFunctionHandler ( params : ReturnType < typeof parseOpenParams > ) {
17- await showMessage (
18- 'warn' ,
19- localize (
18+ const response = await showConfirmationMessage ( {
19+ prompt : localize (
2020 'AWS.lambda.uriUnavailable' ,
21- 'The URI handler you are attempting to open is not handled in this version of the toolkit, try installing the latest version'
22- )
23- )
21+ 'The URI you are attempting to access is not in this version of the Toolkit'
22+ ) ,
23+ confirm : localize ( 'AWS.installLatest' , 'Install latest' ) ,
24+ } )
25+ if ( response ) {
26+ await vscode . commands . executeCommand ( 'extension.open' , VSCODE_EXTENSION_ID . awstoolkit )
27+ }
2428 }
2529
2630 return vscode . Disposable . from (
You can’t perform that action at this time.
0 commit comments