File tree 1 file changed +2
-12
lines changed
arduino-ide-extension/src/browser/contributions
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,7 @@ export class SaveAsSketch extends CloudSketchContribution {
74
74
if ( cloudUri ) {
75
75
destinationUri = await this . createCloudCopy ( { cloudUri, sketch } ) ;
76
76
} else {
77
- const isTemp = await this . sketchesService . isTemp ( sketch ) ;
78
- if ( ! isTemp ) {
79
- // If the current sketch is an ordinary non-temp sketch, do not delete it after the rename.
80
- // https://github.com/arduino/arduino-ide/issues/1882#issuecomment-1427524645
81
- wipeOriginal = false ;
82
- }
83
- destinationUri = await this . createLocalCopy (
84
- sketch ,
85
- isTemp ,
86
- execOnlyIfTemp
87
- ) ;
77
+ destinationUri = await this . createLocalCopy ( sketch , execOnlyIfTemp ) ;
88
78
}
89
79
if ( ! destinationUri ) {
90
80
return false ;
@@ -129,9 +119,9 @@ export class SaveAsSketch extends CloudSketchContribution {
129
119
130
120
private async createLocalCopy (
131
121
sketch : Sketch ,
132
- isTemp ?: boolean ,
133
122
execOnlyIfTemp ?: boolean
134
123
) : Promise < string | undefined > {
124
+ const isTemp = await this . sketchesService . isTemp ( sketch ) ;
135
125
if ( ! isTemp && ! ! execOnlyIfTemp ) {
136
126
return undefined ;
137
127
}
You can’t perform that action at this time.
0 commit comments