Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 events and completions could be handled better
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tomato Guru

2150 Posts

Posted - May 29 2020 :  06:21:03 AM  Show Profile  Reply with Quote
1) completions
Right now when I have an event and I add a handler to it, then VA will show possible
candidates for completion. After selecting a candidate, VA will add it as method CALL not reference. That should be easy to fix.

myControl.Clicked += myControl_OnClickHander(); // <= wrong
myControl.Clicked += myControl_OnClickHander; // <= right

2) adding/renaming
I have mentioned this already in another thread but there it was related to the manual use of VSs rename versus VA rename.
But in the case of event handlers, its a whole different story:
When you use the Intellisense option to add an event handler for the event, after typing myControl.Clicked += intellisense prompts you to hit Tab to create an event handler for it, after hitting tag, a new method is created with a default name and VS enters "rename mode" so you can change the name of the created method.
VA doesnt recognize that VS is in rename mode and offers completion for what I am typing. Badly though, usually I type ahead and hit enter, often with the effect that VA inserts something that was suggested, effectively killing my rename.

Whole Tomato Software

United Kingdom
3279 Posts

Posted - Jun 08 2020 :  8:54:02 PM  Show Profile  Reply with Quote
I was able to reproduce both problems and added bug reports for them.

Issue #1 is case 142336

Issue #2 is case 142338

For now, to mitigate these problems, you may want to try turning off the below setting as a workaround:

VA Options -> Suggestions -> Enable in C#
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000