harsimranb / monodevelop

MonoDevelop is a cross platform IDE mostly aimed at Mono/.NET developers

Home Page:http://www.monodevelop.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for() in document

harsimranb opened this issue · comments

Consider this:
for (var i = 0; i < max; i++) {
var yoyo;
}

we want i to show up in auto completion, if the scope is within for loop.
We do not want i to show up in document outline.

Right now, due to multiple loops, we are getting multiple i vars in both places, causing extreme ugliness.

@mhutch I'm not sure if this is an issue. I guess it's fine to show the loop variables in the document outline. What do you think? I'm also looking at the document outline for C#, which doesn't seem to be showing any variables in a method, regardless of loop or not.

Thoughts?