Skip to content

Commit

Permalink
Check notifications every minute
Browse files Browse the repository at this point in the history
Fixes #62
  • Loading branch information
stijndcl committed Oct 7, 2020
1 parent 382905f commit 54e1966
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { commands, Uri, window } from "vscode";
import { getEnvironmentUrl, getApiEnvironment } from "./../configuration";
import { getEnvironmentUrl, getApiEnvironment } from "../configuration";
import execute from "../api/client";

// Create a default date with timestamp 0
Expand Down Expand Up @@ -56,7 +56,7 @@ export async function notificationsInterval(): Promise<void> {
if (await checkNotifications()) {
showNotification();
}
}, 30000);
}, 60000);
}

function showNotification(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ContentPage from "./api/resources/activities/contentPage";
import {
notificationsInterval,
openNotifications,
} from "./commands/openNotifications";
} from "./commands/checkNotifications";

export function activate(context: ExtensionContext) {
// Create a data provider for the tree view.
Expand Down

0 comments on commit 54e1966

Please sign in to comment.