Skip to content

Commit

Permalink
Clarify update interval
Browse files Browse the repository at this point in the history
  • Loading branch information
timtmok committed Feb 25, 2025
1 parent 9b9fbdd commit 15f2cd9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1675,8 +1675,11 @@ export class RuntimeSessionService extends Disposable implements IRuntimeSession
private async scheduleUpdateActiveLanguages(delay = 60 * 60 * 1000): Promise<IDisposable> {
const updateLanguagesDisposable = disposableTimeout(() => {
this.updateActiveLanguages();

// Schedule the next update with default delay after the first update during service startup
this.scheduleUpdateActiveLanguages();
}, delay);

this._register(updateLanguagesDisposable);
return updateLanguagesDisposable;
}
Expand Down

0 comments on commit 15f2cd9

Please sign in to comment.