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

Update statusbar with result of ex command from neovim #4456

Merged
merged 2 commits into from Jan 8, 2020

Conversation

rsslldnphy
Copy link
Contributor

@rsslldnphy rsslldnphy commented Jan 1, 2020

What this PR does / why we need it:

I noticed that when running certain ex commands with neovim integration enabled, I wasn't seeing any output in the statusbar, regardless of the success or failure of the command. As a result I wasn't sure if commands had been successful or not.

On investigation I realised that there are two cases in which the extension passes an ex command to neovim for execution, but currently only one of them displays the result in the status bar. This commit brings the second case in line with the first so that the result of running the command is displayed:

image

Which issue(s) this PR fixes

As it was a simple fix I decided to just go ahead and make a PR rather than creating an issue.

Special notes for your reviewer:

As a side-note, watching the tests run was extremely cool. Nice work on those!

src/cmd_line/commandLine.ts Outdated Show resolved Hide resolved
rsslldnphy and others added 2 commits January 8, 2020 00:43
There are two cases in which we pass an ex command to neovim
for execution, but currently only one of them displays the result
in the status bar. This commit brings the second case in line with
the first so that the result of running the command is displayed.
Copy link
Member

@J-Fields J-Fields left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@J-Fields J-Fields merged commit e4b5b68 into VSCodeVim:master Jan 8, 2020
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.

None yet

3 participants