Bug 433271

Summary: Problems with code completion while creating #regions
Product: [Mono] MonoDevelop Reporter: Sanford Armstrong <saarmstrong>
Component: texteditorAssignee: Mike Krueger <mkrueger>
Status: RESOLVED DUPLICATE QA Contact: MD Bugs <monodevelop-bugs>
Severity: Normal    
Priority: P5 - None CC: mitchell.wheeler
Version: SVN   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Sanford Armstrong 2008-10-07 23:27:02 UTC
If I type a line:

#region test

Code completion will turn it into:

region test #region

This is because as soon as I type "#region ", the following appears:

region  #region

(with the cursor in the middle, explaining why "test" appeared where it did)



If I type

#regi

And then use the tab key to auto-complete, everything works very nicely.  I only experience the bug if continue typing "#region " manually, or type "#region" and then use the tab key.
Comment 1 Mike Krueger 2008-10-08 08:12:14 UTC
Can't reproduce "#region " works. What are your editor settings ?
Indentation style, tab as reindent command ? Anything unusual ?
Comment 2 Sanford Armstrong 2008-10-08 12:11:25 UTC
* Text Editor
  * General
    X Enable code completion
    X Enable code folding
    _ Fold #regions by default
    X Fold comments by default
  * Behavior
    _ Expand templates
    _ Insert matching brace
    X Remove trailing whitespace
    Indentation mode: Smart
    Tab width: 8
    _ Convert tabs to spaces
    _ Interpret tab keystroke as reindent command
    X Allow tabs after non tabs
    Control left/right mode: MonoDevelop

I think those are the only relevant options, right?
Comment 3 Mike Krueger 2008-10-09 10:04:17 UTC
fixed.
Comment 4 Mitchell Wheeler 2008-12-03 10:50:43 UTC
Trunk (rev: 120579) seems to have a regression along the lines of this bug.

Typing "#region " into the text editor will result in "region on" or "region n" depending on indentation level.

(Indentation Mode: Smart)
Comment 5 Sanford Armstrong 2008-12-03 14:25:43 UTC
I'm a few revisions behind, but I noticed this as well when I updated yesterday.
Comment 6 Michael Hutchinson 2008-12-03 19:07:36 UTC

*** This bug has been marked as a duplicate of bug 448911 ***