@@ -40,6 +40,7 @@ import { parse } from 'semver'
40
40
import { isAutomation } from '../vscode/env'
41
41
import { getOverriddenParameters } from '../../lambda/config/parameterUtils'
42
42
import { addTelemetryEnvVar } from './cli/samCliInvokerUtils'
43
+ import { samSyncUrl } from '../constants'
43
44
44
45
export interface SyncParams {
45
46
readonly region : string
@@ -68,7 +69,7 @@ function createBucketPrompter(client: DefaultS3Client) {
68
69
return createQuickPick ( items , {
69
70
title : 'Select an S3 Bucket' ,
70
71
placeholder : 'Filter or enter a new bucket name' ,
71
- buttons : createCommonButtons ( ) ,
72
+ buttons : createCommonButtons ( samSyncUrl ) ,
72
73
filterBoxInputSettings : {
73
74
label : 'Create a New Bucket' ,
74
75
// This is basically a hack. I need to refactor `createQuickPick` a bit.
@@ -100,7 +101,7 @@ function createStackPrompter(client: DefaultCloudFormationClient) {
100
101
label : 'Create a New Stack' ,
101
102
transform : v => v ,
102
103
} ,
103
- buttons : createCommonButtons ( ) ,
104
+ buttons : createCommonButtons ( samSyncUrl ) ,
104
105
} )
105
106
}
106
107
@@ -118,7 +119,7 @@ function createEcrPrompter(client: DefaultEcrClient) {
118
119
return createQuickPick ( items , {
119
120
title : 'Select an ECR Repository' ,
120
121
placeholder : 'Filter or enter an existing repository URI' ,
121
- buttons : createCommonButtons ( ) ,
122
+ buttons : createCommonButtons ( samSyncUrl ) ,
122
123
filterBoxInputSettings : {
123
124
label : 'Existing repository URI' ,
124
125
transform : v => v ,
@@ -137,7 +138,7 @@ export function createEnvironmentPrompter(config: SamConfig, environments = conf
137
138
138
139
return createQuickPick ( items , {
139
140
title : 'Select an Environment to Use' ,
140
- buttons : createCommonButtons ( ) ,
141
+ buttons : createCommonButtons ( samSyncUrl ) ,
141
142
} )
142
143
}
143
144
@@ -166,7 +167,7 @@ function createTemplatePrompter() {
166
167
const trimmedItems = folders . size === 1 ? items . map ( item => ( { ...item , description : undefined } ) ) : items
167
168
return createQuickPick ( trimmedItems , {
168
169
title : 'Select a CloudFormation Template' ,
169
- buttons : createCommonButtons ( ) ,
170
+ buttons : createCommonButtons ( samSyncUrl ) ,
170
171
} )
171
172
}
172
173
0 commit comments