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

Calling VsVim.SetMode programatically can cause popup error window #1896

Closed
ghost opened this issue Jan 5, 2017 · 2 comments
Closed

Calling VsVim.SetMode programatically can cause popup error window #1896

ghost opened this issue Jan 5, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2017

  • My current document is a class diagram
  • In the command window I execute:

    VsVim.SetMode Normal

  • Error message: "Could not detect an active vim bufferThe operation could not be completed. Unspecified error"

If I try to execute the same command from within my extension via DTE.ExecuteCommand (the class diagram is the current window/buffer):
_dte.ExecuteCommand("VsVim.SetMode", "Normal");

A dialog pops up:
image

Is there any way to suppress this?
Thanks --

@jaredpar
Copy link
Collaborator

jaredpar commented Jan 7, 2017

Hmm, I'm not sure why that dialog is popping up. It's certainly not anything that I'm doing. It must be originating from within Visual Studio itself. I'm unsure how that could be suppressed then.

@ghost
Copy link
Author

ghost commented Jan 7, 2017

Ok. The message in the popup is almost identical to the one in the command window, and if I don't invoke the vsvim.setmode command the popup doesn't appear, so I thought vsvim might be involved.
Thanks.

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

No branches or pull requests

1 participant