gioboa / jira-plugin

Jira plugin for VsCode
https://marketplace.visualstudio.com/items?itemName=gioboa.jira-plugin
MIT License
266 stars 41 forks source link

Away timer - Automatically add time away less than 20 minutes #4

Closed deftdawg closed 6 years ago

deftdawg commented 6 years ago

This past week in testing, I've logged very little time through the extension because I've been switching between email, look at logs in terminal and running things in Eclipse. All of those tasks are related to the working issue and I usually jump in to VS Code again within a few minutes, since VS code isn't active, the time is "lost".

This prototype sets up a countdown timeout of 20 minutes, if I return within that timeout the inactive time is added to the working time and the clock resumes.

If I don't return to VSCode within 20 minutes, than that interruption time is not logged against the task. The timeout could be shorter by default (like 5 minutes) or not enabled at all.

Please feel free to use/not use the code... It was just something I hacked up quickly, so it's not very elegant. 😄

gioboa commented 6 years ago

Hi, can you commit in the pull request all the files? This type of approach can be better for have precise time activity.

deftdawg commented 6 years ago

@gioboa the only file that changed is out/src/shared/status-bar.js, there's no other files. Not sure if that's what you mean.

gioboa commented 6 years ago

The source code is in src folder and in the out folder there are compiled files. if you want you can modify the src file and I merge the pull request or I take your code and I do the implementation.

deftdawg commented 6 years ago

Oh I got you.... Sorry about that I was hacking the loaded plugin... I'll see if I can fix it.

On Sat, Jul 21, 2018, 10:42 AM Giorgio Boa, notifications@github.com wrote:

The source code is in src folder and in the out folder there are compiled files. if you want you can modify the src file and I merge the pull request or I take your code and I do the implementation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gioboa/jira-plugin/pull/4#issuecomment-406801012, or mute the thread https://github.com/notifications/unsubscribe-auth/AEwqfJTrHhW5ecC-w-FvwjysnWoX9Z4hks5uIz3vgaJpZM4VZcQs .

gioboa commented 6 years ago

Hi, what about this pull request? I can implement for you the feature if you want... I plan it in the next milestone.

deftdawg commented 6 years ago

Sorry really busy at work and home, might be able to do some work on it on Thursday.

On Tue, Jul 24, 2018, 1:37 AM Giorgio Boa, notifications@github.com wrote:

Hi, what about this pull request? I can implement for you the feature if you want... I plan it in the next milestone.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/gioboa/jira-plugin/pull/4#issuecomment-407286964, or mute the thread https://github.com/notifications/unsubscribe-auth/AEwqfCmAafL3poRMRaXyNc4qJMbl8VEeks5uJrKfgaJpZM4VZcQs .

gioboa commented 6 years ago

Don't worry, it was only for understand if I need to schedule also this task. 😄

deftdawg commented 6 years ago

Not sure how to replace the pull request, so will just close this and open a new pull request