Re: Visual Assist's context menu can't be closed with ESC and vaxesc prob.
Hello,
I found two issues, rather minor ones, but nevertheless, well.....
I have installed Visual Assist X and ViEmu (see below for configuration
details). If I open the "main" context menu of Visual Assist X or the
snippet context menu, I can't close them with ESC. I either have
to select a menu element or I have to click with the mouse in the code
window. This is annoying since I use ViEmu to avoid using the mouse ;-)
If ViEmu is disabled, this problem does not exist.
This issue seems to happen not to all VAX context menus. At least
the VAX refactor context menu can be closed with ESC.
The context menus of VS itself seems to be not affeted.
If I open the "main" context menu while in normal mode I can
select menu items with cursor up/down and select a menu item
by pressing enter. But when pressing ESC, ViEmu changes
from insert mode into normal mode instead of closing the
the context menu. Now when pressing the cursor keys, the
caret can be moved (not the menu selection). Pressing ESC
again does nothing change.
If I then change into insert mode, the context menu is closed
and a break point is set in the line in which the caret was!
(so whenever I forget the shortcut to set a breakpoint I could do it that way ;-) )
For the snippet context menu the behavior is similar, but the
breakpoint is not set (hmmm...???).
The context menus can be opened these ways:
Main context menu:
Hold shift and right-click mouse or use the VAssistX.OpenContextMenu command to open it.
Refactor context menu:
map the command VAssistX.OpenRefactorContextMenu to any shortcut and press this shortcut
Snippet context menu:
map the command VAssistX.VaSnippetInsert to any shortcut and press this shortcut
It does not matter whether the ViEmu setting vaxesc is enabled or disabled.
And this leads me to a second issue:
The vaxesc setting seems to be broken. According to ViEmu's manual this setting
should control how the ESC key is handled if VAX shows an autocompletion list.
From the manual:
"vaxesc" activates specific behavior in ViEmu when Visual Assist is detected to be running for the ESC key in insert mode. If active, this will ensure ESC returns to normal mode even if there is a Visual Assist autocompletion drop-down window present. If not active, ESC will return to normal mode if no autocompletion drop-down is present, but it will just close the autocompletion drop-down if it is present (requiring another ESC keypress to return to normal mode).
But I can't see here any difference. I always have to press ESC twice to come back
into normal mode if an autocompletion list is open.
Can someone confirm these issues? Are there any workarounds or settings
to fix this?
Greetings
LoveVim
--------------------------------------
Some info about my system:
ViEmu 2.2.9
Visual Assist X 10.5.1727.0
Visual Studio 2008 Standard, SP 1, German
Plugins: ViEmu and Visual Assist X
Windows XP