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

Commands can write to status bar #177

Merged
merged 1 commit into from
Mar 10, 2016
Merged

Conversation

frarees
Copy link
Contributor

@frarees frarees commented Mar 4, 2016

Fixes #156.

@jpoon
Copy link
Member

jpoon commented Mar 4, 2016

I think we should just remove it entirely or move the message to the status bar.

@frarees
Copy link
Contributor Author

frarees commented Mar 4, 2016

We could move the message to the status bar.
"<filename>" <lines>L, <chars>C written.
What do you think?

@jpoon
Copy link
Member

jpoon commented Mar 4, 2016

👍

@frarees frarees force-pushed the save_message branch 2 times, most recently from f3dca1a to 52224e4 Compare March 4, 2016 21:20
@frarees frarees changed the title Configurable save message Commands can write to status bar Mar 4, 2016
@@ -81,12 +81,16 @@ export class ModeHandler implements vscode.Disposable {
}
}

private setupStatusBarItem(text : string) : void {
private setupModeStatusBarItem(text : string) : void {
Copy link
Member

Choose a reason for hiding this comment

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

Can we consolidate these functions? setupModeStatusBarItem and setupStatusBarItem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@frarees
Copy link
Contributor Author

frarees commented Mar 5, 2016

I've passed the mode handler down to the command. Will there be more than one instance of mode handler? Otherwise we could make it a singleton and that could simplify the API.

@jpoon
Copy link
Member

jpoon commented Mar 10, 2016

Nah, this is fine. Thanks!

jpoon added a commit that referenced this pull request Mar 10, 2016
Commands can write to status bar
@jpoon jpoon merged commit f0ac521 into VSCodeVim:master Mar 10, 2016
This pull request was closed.
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