Skip to content

Commit

Permalink
Integrity, lint (async catch) and reduce API surface
Browse files Browse the repository at this point in the history
by removing protected method used in only one place
  • Loading branch information
krassowski committed Mar 11, 2024
1 parent 63c3e30 commit 98b7dfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/docmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@lumino/coreutils": "^2.1.2",
"@lumino/disposable": "^2.1.2",
"@lumino/messaging": "^2.0.1",
"@lumino/polling": "^2.1.2",
"@lumino/properties": "^2.0.1",
"@lumino/signaling": "^2.1.2",
"@lumino/widgets": "^2.3.1",
Expand Down
9 changes: 1 addition & 8 deletions packages/docmanager/src/recents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class RecentsManager implements IRecentsManager, IDisposable {
return a.root !== this._serverRoot ? 1 : -1;
}
});
this.saveRecents();
this._saveDebouncer.invoke().catch(console.warn);
}

/**
Expand Down Expand Up @@ -237,13 +237,6 @@ export class RecentsManager implements IRecentsManager, IDisposable {
return invalidPathsOrNulls.filter(x => typeof x === 'string') as string[];
}

/**
* Save the recent items to the state with debouncing.
*/
protected saveRecents(): void {
this._saveDebouncer.invoke();
}

/**
* Save the recent items to the state.
*/
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2901,6 +2901,7 @@ __metadata:
"@lumino/coreutils": ^2.1.2
"@lumino/disposable": ^2.1.2
"@lumino/messaging": ^2.0.1
"@lumino/polling": ^2.1.2
"@lumino/properties": ^2.0.1
"@lumino/signaling": ^2.1.2
"@lumino/widgets": ^2.3.1
Expand Down

0 comments on commit 98b7dfd

Please sign in to comment.