Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
high CPU load #510
Visual Studio is just idling.
Opening more files doesn't change much and I also didn't start editing the files yet.
When I disable all other plugins (except CodeMaid that I can only uninstall) the situation is the same.
As before - if I can provide any other info / help please ask.
That's odd. VsVim typically doesn't do any actions on idle and hence I wouldn't expect it to cause this problem. Here's a couple more questions
I've isolated the issue - the files that I was opening are quite big (~1700 lines of code) - I know it's bad design / coding but it's not my code so I'm excused :P
Conclusion - VsVim is having a hard time dealing with lots of collapsed blocks of code, which is not really an issue if you follow a good design guidelines and use small code files.
Please close this issue if you want :) Thank you for a great plugin.
Ah, thanks for tracking it down to an issue with outlining. I can get a repro of the problem now.
What's happening here is VsVim's support for external editor actions (like Reshaprer and Visual Studio Snippets) is getting in the way. One way external editor actions are monitored is by looking at the annotations / tags they put onto the visible screen. R# and Snippets for example tag text in a very specific way which can be queried in the Visual Studio API. So on every layout change VsVim will scan the visible text for these tags and take appropriate actions to integrate well with the edits it finds.
The visible screen is rarely bigger than 80-100 lines. Getting the tags for that small of a line range is very fast. VsVim wasn't filtering out collapsed regions though so in the collapsed case it was getting tags for thousands and thousands of lines. That's much too slow.
I'm working on a fix for this. It will definitely be included in 1.0. If it turns out to be small enough I may release it as a hot fix to 0.9.6.
Thanks for reporting this!