We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1a4a1 commit cb9684bCopy full SHA for cb9684b
packages/core/src/browser/saveable-service.ts
@@ -222,7 +222,8 @@ export class SaveableService implements FrontendApplicationContribution {
222
if (!Saveable.isDirty(widget)) {
223
return false;
224
}
225
- if (this.autoSave !== 'off') {
+ const saveable = Saveable.get(widget);
226
+ if (this.autoSave !== 'off' && (!saveable || this.shouldAutoSave(widget, saveable))) {
227
return true;
228
229
const notLastWithDocument = !Saveable.closingWidgetWouldLoseSaveable(widget, Array.from(this.saveThrottles.keys()));
0 commit comments