Skip to content

Commit

Permalink
Fixing bug where auto sync was not happening on extension load
Browse files Browse the repository at this point in the history
  • Loading branch information
Spoorthi S committed Jul 27, 2020
1 parent 8393621 commit ba79234
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to the "code-with-todoist" extension will be documented in t

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## Unreleased

### Added

### Changed

### Removed

### Fixed

## [0.2.1] - 2020-07-27

### Fixed
* Fixing bug where auto sync was not happening on extension load

## [0.2.0] - 2020-07-24

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "code-with-todoist",
"displayName": "code with Todoist",
"description": "Todoist plugin for vs code",
"version": "0.2.0",
"version": "0.2.1",
"publisher": "Spoorthi",
"icon": "media/extension_icon.png",
"license": "SEE LICENSE IN LICENSE",
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ export function activate(context: vscode.ExtensionContext) {
}
const currentTime = new Date().getTime();
if (currentTime - lastSyncTime > 600000) { // 10 minutes
//syncTodoist();
syncTodoist();
}

vscode.window.registerTreeDataProvider('projects', projectsTreeViewProvider);
vscode.window.registerTreeDataProvider('task', taskTreeViewProvider);
vscode.window.registerTreeDataProvider('todos', todoViewProvider);
Expand Down

0 comments on commit ba79234

Please sign in to comment.