diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2015-09-15 11:04:40 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2015-09-15 11:04:40 +0300 |
commit | 0e1f15d51f78db46b106dda4f9c40a645a863506 (patch) | |
tree | 1e10e581b3bb75229a49b04373a0f0146e3d9278 | |
parent | c21829a8d7a9a0468b0cb4b4002cfaab91da53ee (diff) |
Fixed 'Bug 33946 - [roslyn] Alt-up/down no longer re-indents line'.
-rw-r--r-- | main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs index 924a2ab513..5a9318c687 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs @@ -753,16 +753,6 @@ namespace MonoDevelop.SourceEditor Load (fileOpenInformation.FileName, fileOpenInformation.Encoding, fileOpenInformation.IsReloadOperation); } - MonoDevelop.Ide.Gui.Document ownerDocument; - protected MonoDevelop.Ide.Gui.Document OwnerDocument { - get { return ownerDocument; } - } - - protected virtual void HandleDocumentParsed (object sender, EventArgs e) - { - widget.UpdateParsedDocument (ownerDocument.ParsedDocument); - } - protected virtual string ProcessLoadText (string text) { return text; @@ -973,11 +963,6 @@ namespace MonoDevelop.SourceEditor debugStackLineMarker = null; currentDebugLineMarker = null; - if (ownerDocument != null) { - ownerDocument.DocumentParsed -= HandleDocumentParsed; - ownerDocument = null; - } - RemoveMarkerQueue (); widget.Dispose (); if (wrapper != null) { @@ -2252,7 +2237,7 @@ namespace MonoDevelop.SourceEditor void CorrectIndenting () { - var doc = ownerDocument.Editor; + var doc = IdeApp.Workbench.ActiveDocument?.Editor; if (doc == null) return; var formatter = CodeFormatterService.GetFormatter (Document.MimeType); |