You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnmodifiedWorkingCopies;// backup if a folder is open and onExitAndWindowClose is configured
200
-
}else{
201
-
returnmodifiedWorkingCopies.filter(wc=>wc.capabilities&WorkingCopyCapabilities.Scratchpad);// only backup scratchpads because we are switching contexts
202
-
}
203
-
}else{
204
-
return[];// do not backup because we are switching contexts with no folder open
184
+
returnmodifiedWorkingCopies.filter(modifiedWorkingCopy=>modifiedWorkingCopy.capabilities&WorkingCopyCapabilities.Scratchpad);// backup scratchpads automatically to avoid user confirmation
205
185
}
206
-
}
186
+
187
+
return[];// do not backup if a window is closed that does not cause quitting of the application
188
+
}
189
+
190
+
returnmodifiedWorkingCopies;// backup if last window is closed on win/linux where the application quits right after
191
+
192
+
// Application Quit
193
+
caseShutdownReason.QUIT:
194
+
returnmodifiedWorkingCopies;// backup because next start we restore all backups
195
+
196
+
// Window Reload
197
+
caseShutdownReason.RELOAD:
198
+
returnmodifiedWorkingCopies;// backup because after window reload, backups restore
returnmodifiedWorkingCopies;// backup if a workspace/folder is open and onExitAndWindowClose is configured
205
+
}
206
+
207
+
returnmodifiedWorkingCopies.filter(modifiedWorkingCopy=>modifiedWorkingCopy.capabilities&WorkingCopyCapabilities.Scratchpad);// backup scratchpads automatically to avoid user confirmation
208
+
}
209
+
210
+
return[];// do not backup because we are switching contexts with no workspace/folder open
0 commit comments