diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2014-06-20 17:55:50 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2014-06-20 17:55:50 +0400 |
commit | d40d5cf3f60521e4d1f284bab1e7e2dd73420c76 (patch) | |
tree | a3a547c8beea409954217461654a2a0a315a287a /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting | |
parent | 40e5cb459acc18fb4aeecbb8999d82eb517c051f (diff) |
[Core] Renamed ITextSource.TextLength to Length.
In the old editor+nrefactory API TextLength and Length was mixed
depending on the level that was worked on. Now I changed it to be
'Length'.
I don't think that there is any confusion about what the Length of a
text is. TextLength only has the benefit that it's almost the same as
src.Text.Length. But I want to discourage doing src.Text.Length
anyways therefore Length is more convenient in my opinion.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs index 64c5f91437..7ec0246a82 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs @@ -66,7 +66,7 @@ namespace MonoDevelop.Ide.CodeFormatting if (formatter.SupportsOnTheFlyFormatting) { using (var undo = doc.Editor.OpenUndoGroup ()) { - formatter.OnTheFlyFormat (doc, 0, doc.Editor.TextLength); + formatter.OnTheFlyFormat (doc, 0, doc.Editor.Length); } } else { doc.Editor.Text = formatter.FormatText (doc.Project.Policies, doc.Editor.Text); |