Skip to content

Commit

Permalink
Refresh results every five minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
magicus committed Oct 20, 2021
1 parent f939bef commit f26e936
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"no-console": "off",
"no-else-return": "off",
"no-invalid-this": "off",
"no-magic-numbers": ["warn", { "ignore": [0, 1] }],
"no-negated-condition": "off",
"no-promise-executor-return": "off",
"no-ternary": "off",
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function activate(context: vscode.ExtensionContext): void {

const githubProvider = new GitHubProvider();
vscode.window.registerTreeDataProvider('gitHubIntegration', githubProvider);
setInterval(() => githubProvider.userRefresh(), 5 * 60 * 1000); // 5 minutes

context.subscriptions.push(vscode.commands.registerCommand('openjdkDevel.gitHubIntegration.refresh', (url: any) => {
githubProvider.userRefresh();
Expand Down

0 comments on commit f26e936

Please sign in to comment.