private void OnMappingsChanged(object sender, MappingsChangedEventArgs e)
 {
     if (e.Mappings.Count > 0)
     {
         _languageBuffer.MappingsChanged -= OnMappingsChanged;
         IContainedLanguageHost host = ContainedLanguageHost.GetHost(TextView, _languageBuffer.IProjectionBuffer);
         host.SetContainedCommandTarget(TextView, ContainedLanguageTarget);
         ContainedLanguageTarget = null;
         TextView = null;
         _languageBuffer = null;
     }
 }
Ejemplo n.º 2
0
 private void OnMappingsChanged(object sender, MappingsChangedEventArgs e)
 {
     if (e.Mappings.Count > 0)
     {
         _languageBuffer.MappingsChanged -= OnMappingsChanged;
         IContainedLanguageHost host = ContainedLanguageHost.GetHost(TextView, _languageBuffer.IProjectionBuffer);
         host.SetContainedCommandTarget(TextView, ContainedLanguageTarget);
         ContainedLanguageTarget = null;
         TextView        = null;
         _languageBuffer = null;
     }
 }
Ejemplo n.º 3
0
 private void OnMappingsChanged(object sender, MappingsChangedEventArgs e)
 {
     _canReformatCode = true;
 }
 private void OnMappingsChanged(object sender, MappingsChangedEventArgs e)
 {
     _canReformatCode = true;
 }