Skip to content

Commit

Permalink
adopt store-arg for disposableTime where meaningful (microsoft#194473)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 29, 2023
1 parent 9e9b514 commit 5eafb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/editor/contrib/codelens/browser/codelensController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ export class CodeLensContribution implements IEditorContribution {
// no provider -> return but check with
// cached lenses. they expire after 30 seconds
if (cachedLenses) {
this._localToDispose.add(disposableTimeout(() => {
disposableTimeout(() => {
const cachedLensesNow = this._codeLensCache.get(model);
if (cachedLenses === cachedLensesNow) {
this._codeLensCache.delete(model);
this._onModelChange();
}
}, 30 * 1000));
}, 30 * 1000, this._localToDispose);
}
return;
}
Expand Down

0 comments on commit 5eafb0a

Please sign in to comment.