Bug 448911

Summary: Typing "#region<SPC>foo" results in "region<SPC>fooon"
Product: [Mono] MonoDevelop Reporter: Michael Trausch <mike>
Component: texteditorAssignee: Michael Hutchinson <mhutchinson>
Status: RESOLVED FIXED QA Contact: MD Bugs <monodevelop-bugs>
Severity: Normal    
Priority: P5 - None CC: esqueleto
Version: SVN   
Target Milestone: 2.0 Beta 2   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Trausch 2008-11-25 20:37:55 UTC
The summary says it all.

Also, when typing it and desiring to have it indented, it outdents a bit.

This happens a couple of different ways, as well.  For example:

“#region<TAB>” yields “regionon”, and one level outdent.
“#endregion<ENTER>” yields “endregionon”, and one level outdent.

If you type “#re<ENTER><SPC>REGION NAME” it works, but I have not retrained my fingers to have quite as much assistance as they have, yet.  ;-)
Comment 1 Michael Hutchinson 2008-11-26 02:24:35 UTC
This is /almost/ a duplicate of bug 429265, in that code completion and the smart indenter are fighting.

The indenter should be suppressed while the completion window is open, and triggered when the window closes.
Comment 2 Michael Hutchinson 2008-11-26 02:25:51 UTC
FWIW, #region<ESC> works too.
Comment 3 Michael Trausch 2008-11-26 05:53:15 UTC
Michael,

Thanks, I hadn't thought to try that.  :)
Comment 4 Michael Hutchinson 2008-12-03 19:07:36 UTC
*** Bug 433271 has been marked as a duplicate of this bug. ***
Comment 5 Michael Hutchinson 2009-01-04 23:52:45 UTC
*** Bug 463334 has been marked as a duplicate of this bug. ***
Comment 6 Michael Hutchinson 2009-02-05 22:27:28 UTC
Fixed in r125948.
Comment 7 Sanford Armstrong 2009-02-05 22:36:47 UTC
Sorry, still broken in r125948.  Typing "#region " produces "region on".
Comment 8 Sanford Armstrong 2009-02-05 22:38:05 UTC
Using Smart indentation mode, btw. Let me know if I can provide any more info.
Comment 9 Michael Hutchinson 2009-02-06 00:35:09 UTC
Yeah, the smart indenter is antisocial.

I've committed a better fix.
Comment 10 Michael Hutchinson 2009-02-06 00:35:37 UTC
Closing.
Comment 11 Michael Trausch 2009-03-21 06:54:39 UTC
Thanks for the fix, it works wonderfully!