Re: MonoDevelop addin: Plumbing and autocompletion
Posted: Mon Nov 19, 2012 7:06 pm
For comments and doc strings, I'm not sure what the best way to do it would be either. I wouldn't want to slow down the parser any since this wouldn't be particularly useful for actually compiling code.
For the blank line, that's exactly what I ended up doing so I'm glad you had the same idea. My implementation felt hacky though. It's a style issue at this point I suppose. I'll refine it until I convince myself it's good.
Hmm...thinking about it a bit on the drive home from work, I foresee a problem with line continuations even with an .endingToken. If I'm not in the first line of a existing method declaration that spans multiple lines, I'm going to have to know that so variables declared in the method body aren't displayed as proposals. I'm getting ahead of myself. I'll cross that bridge when I get there. .endingToken will still work for the common line continuation case and for non-indented namespaces so I'm looking forward to that.
For the blank line, that's exactly what I ended up doing so I'm glad you had the same idea. My implementation felt hacky though. It's a style issue at this point I suppose. I'll refine it until I convince myself it's good.
Hmm...thinking about it a bit on the drive home from work, I foresee a problem with line continuations even with an .endingToken. If I'm not in the first line of a existing method declaration that spans multiple lines, I'm going to have to know that so variables declared in the method body aren't displayed as proposals. I'm getting ahead of myself. I'll cross that bridge when I get there. .endingToken will still work for the common line continuation case and for non-indented namespaces so I'm looking forward to that.