Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grammatical error in status bar tooltip #215

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

salmonslay
Copy link
Contributor

The current tooltip in the status bar will start with "You coded", resulting in a grammatical error when the output is added which this PR aims to fix.

For example, the message

WakaTime: You coded 2 hrs 32 mins Coding, 36 mins Debugging, 25 mins Building today.

will be changed to

WakaTime: Today you have spent 2 hrs 32 mins Coding, 36 mins Debugging, 25 mins Building.

Screenshot of current tooltip:

image

@@ -467,7 +467,7 @@ export class WakaTime {
if (code == 0) {
if (output && this.showStatusBar && this.showCodingActivity) {
this.statusBar.text = `$(clock) ${output}`;
this.statusBar.tooltip = `WakaTime: You coded ${output.trim()} today.`;
this.statusBar.tooltip = `WakaTime: Today you have spent ${output.trim()}.`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.statusBar.tooltip = `WakaTime: Today you have spent ${output.trim()}.`;
this.statusBar.tooltip = `WakaTime: You have spent ${output.trim()} today.`;

Might be better as it matches the original tooltip closer.

@alanhamlett alanhamlett merged commit 266fc80 into wakatime:master Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants