Skip to content

Commit

Permalink
Cleanup unused textviewfactory
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelwgn committed Aug 25, 2023
1 parent 52f5d22 commit fddeb6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/IndentRainbow.Extension/Classification/Indent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public sealed class Indent
/// <param name="view">Text view to create the adornment for</param>
//Ignoring warning since this adornment is always on UI thread
#pragma warning disable VSTHRD010
public Indent(IWpfTextView view, ITextDocumentFactoryService textDocumentFactory)
public Indent(IWpfTextView view)
{
if (view == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ internal sealed class IndentTextViewCreationListener : IWpfTextViewCreationListe

#pragma warning restore 649, 169

/// <summary>
/// The text document factory that will be used to determine the file name of the text editor, the indent extension is currently processing
/// </summary>
[Import]
public ITextDocumentFactoryService TextDocumentFactory { get; set; }

#region IWpfTextViewCreationListener

/// <summary>
Expand All @@ -47,7 +41,7 @@ public void TextViewCreated(IWpfTextView textView)
// The adornment will listen to any event that changes the layout (text changes, scrolling, etc)
// When we created the adornment,we don't need a reference anymore, since everything necessary is done when the object is created
#pragma warning disable CA1806 // Do not ignore method results
new Indent(textView, TextDocumentFactory);
new Indent(textView);
#pragma warning restore CA1806 // Do not ignore method results
}

Expand Down

0 comments on commit fddeb6c

Please sign in to comment.