views:

19

answers:

0

Hi

I'm working on Visual Studio package.

I need to know when mouse selection is done in the code editor. I have to update some object when selection is changed.

Currently we are doing this with CommandListener implementing IOleCommandTarget and attached to the IVsTextView. The problem is that mouse selection doesn't come as a command in the CommandListener.

I try with IVsSelectionEvents but method OnCmdUIContextChanged is called only after first selection. If I create a new selection with mouse after the first IVsSelectionEvents methods are not called.

Thanks Jordan