File tree 2 files changed +5
-3
lines changed
arduino-ide-extension/src/browser
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export class CreateCloudCopy extends CloudSketchContribution {
95
95
) ;
96
96
97
97
progress . report ( { message : pushingSketch ( newSketch . name ) } ) ;
98
- await treeModel . sketchbookTree ( ) . push ( newNode , true ) ;
98
+ await treeModel . sketchbookTree ( ) . push ( newNode , true , true ) ;
99
99
} ;
100
100
return this . commandService . executeCommand (
101
101
NewCloudSketch . Commands . NEW_CLOUD_SKETCH . id ,
Original file line number Diff line number Diff line change @@ -174,7 +174,8 @@ export class CloudSketchbookTree extends SketchbookTree {
174
174
175
175
async push (
176
176
node : CloudSketchbookTree . CloudSketchDirNode ,
177
- noProgress = false
177
+ noProgress = false ,
178
+ ignorePushWarnings = false
178
179
) : Promise < void > {
179
180
if ( ! CloudSketchbookTree . CloudSketchTreeNode . isSynced ( node ) ) {
180
181
throw new Error (
@@ -190,7 +191,8 @@ export class CloudSketchbookTree extends SketchbookTree {
190
191
return ;
191
192
}
192
193
193
- const warn = this . arduinoPreferences [ 'arduino.cloud.push.warn' ] ;
194
+ const warn =
195
+ ! ignorePushWarnings && this . arduinoPreferences [ 'arduino.cloud.push.warn' ] ;
194
196
195
197
if ( warn ) {
196
198
const ok = await new DoNotAskAgainConfirmDialog ( {
You can’t perform that action at this time.
0 commit comments