title: I can't understand visual studio tabs have changed
body: <p>Here, when a view is created with <em>TextViewCreated</em>, I do some operations there, the editor works without a problem when a single file is open, but because I cannot understand that there are different files when I open two files, or because I have no information when they change, it performs incorrectly. How can tell when switching files visual studio?</p>
  <pre class="lang-cs prettyprint-override"><code>    [Export(typeof(IWpfTextViewCreationListener))]
      [ContentType(&quot;text&quot;)]
      [TextViewRole(PredefinedTextViewRoles.Document)]
      internal sealed class EditorListener : IWpfTextViewCreationListener
      {
          [Import] private readonly IAsyncCompletionBroker _completionBroker = null;
          [Import] private readonly IEditorOperationsFactoryService _editorOperationsFactory = null;
  
          private ParenthesesManager Manager { get; set; }
          private IWpfTextView TextView { get; set; }
          private IEditorOperations EditorOperations { get; set; }
  
          public void TextViewCreated(IWpfTextView textView)
          {
              TextView = textView;
              EditorOperations = _editorOperationsFactory.GetEditorOperations(textView);
              if (_completionBroker != null)
              {
                  _completionBroker.CompletionTriggered += CompletionBroker_CompletionTriggered;
              }
  
              Manager = new ParenthesesManager(EditorOperations, TextView);
          }
  
          private void CompletionBroker_CompletionTriggered(object sender, CompletionTriggeredEventArgs eventArgs)
          {
              eventArgs.CompletionSession.ItemCommitted += CompletionSession_ItemCommitted;
  
              EditorOperations = _editorOperationsFactory.GetEditorOperations(eventArgs.TextView);
              Manager.TextView = TextView;
              Manager.EditorOperations = EditorOperations;
          }
  
          private void CompletionSession_ItemCommitted(object sender, CompletionItemEventArgs itemEventArgs)
          {
              Manager.Run(itemEventArgs);
              var session = _completionBroker.GetSession(TextView);
              session.ItemCommitted -= CompletionSession_ItemCommitted;
          }
      }
  </code></pre>