See PSI plugin for hint.
What's the spec of this function?
How difficult is it?
See PsiPlugin sources for example. You could find them in SDK path directory somewhere near:
C:\Program Files (x86)\JetBrains\ReSharper\v7.1\SDK\Samples\PsiPlugin\src\Psi\Psi\Parsing\
This function should insert comments and other spaces into PSI tree.
but what did I just fix?
I've copied over the stuff from the SDK but honestly, I have no idea what it is, and something tells me the implementation for F# could be different seeing how it's a whitespace-significant language.
Well, wouldn't it be better to understand what we're adding in, rather than blindly copying code where we've got no idea what it does?
It totally would, so I hope @ollka can explain exactly what this business of whitespace insertion is for.