I am working on a language service and would like the parsing after the user types code to be faster.
Right now I rely on the ParseReason.Check
and OnIdle
mechanism that's documented on MSDN, but its often called a long time after the user has typed code. Sometimes it helps to move the cursor to another line to trigger it faster.
What I'd like to do is to force parse the file after I detect the user has typed in the file. I'm able to detect when the user is typing, but I don't know how to trigger the parser with a ParseRequest
.