/// <summary> /// Instantiates a ColumnGuide manager when a textView is created. /// </summary> /// <param name="textView">The <see cref="IWpfTextView"/> upon which the adornment should be placed</param> public void TextViewCreated(IWpfTextView textView) { // Always create the adornment, even if there are no guidelines, since we // respond to dynamic changes. #pragma warning disable IDE0067 // Dispose objects before losing scope #pragma warning disable CA2000 // Dispose objects before losing scope var _ = new ColumnGuide(textView, TextEditorGuidesSettings, GuidelineBrush, CodingConventionsManager); #pragma warning restore CA2000 // Dispose objects before losing scope #pragma warning restore IDE0067 // Dispose objects before losing scope }
/// <summary> /// Instantiates a ColumnGuide manager when a textView is created. /// </summary> /// <param name="textView">The <see cref="IWpfTextView"/> upon which the adornment should be placed</param> public void TextViewCreated(IWpfTextView textView) { // Always create the adornment, even if there are no guidelines, since we // respond to dynamic changes. var _ = new ColumnGuide(textView, TextEditorGuidesSettings, GuidelineBrush, CodingConventionsManager, Telemetry); }