|
|
|
@ -117,8 +117,9 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -117,8 +117,9 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
} else { |
|
|
|
|
this.errorPainter.UpdateErrors(); |
|
|
|
|
} |
|
|
|
|
changeWatcher.Initialize(this.DocumentAdapter); |
|
|
|
|
|
|
|
|
|
if (changeWatcher != null) { |
|
|
|
|
changeWatcher.Initialize(this.DocumentAdapter); |
|
|
|
|
} |
|
|
|
|
FetchParseInformation(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -145,8 +146,9 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -145,8 +146,9 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
|
|
|
|
|
textMarkerService = new TextMarkerService(this); |
|
|
|
|
iconBarManager = new IconBarManager(); |
|
|
|
|
changeWatcher = new DefaultChangeWatcher(); |
|
|
|
|
|
|
|
|
|
if (CodeEditorOptions.Instance.EnableChangeMarkerMargin) { |
|
|
|
|
changeWatcher = new DefaultChangeWatcher(); |
|
|
|
|
} |
|
|
|
|
primaryTextEditor = CreateTextEditor(); |
|
|
|
|
primaryTextEditorAdapter = (CodeEditorAdapter)primaryTextEditor.TextArea.GetService(typeof(ITextEditor)); |
|
|
|
|
Debug.Assert(primaryTextEditorAdapter != null); |
|
|
|
@ -205,7 +207,9 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -205,7 +207,9 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
textView.Services.AddService(typeof(IBookmarkMargin), iconBarManager); |
|
|
|
|
codeEditorView.TextArea.LeftMargins.Insert(0, new IconBarMargin(iconBarManager)); |
|
|
|
|
|
|
|
|
|
codeEditorView.TextArea.LeftMargins.Add(new ChangeMarkerMargin(changeWatcher)); |
|
|
|
|
if (CodeEditorOptions.Instance.EnableChangeMarkerMargin) { |
|
|
|
|
codeEditorView.TextArea.LeftMargins.Add(new ChangeMarkerMargin(changeWatcher)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
textView.Services.AddService(typeof(ISyntaxHighlighter), new AvalonEditSyntaxHighlighterAdapter(textView)); |
|
|
|
|
|
|
|
|
|