Ejemplo n.º 1
0
 /// <summary>
 /// format given snapshot and apply text changes to buffer
 /// </summary>
 public static void FormatAndApplyToBuffer(
     this ITextSnapshot snapshot,
     TextSpan span,
     CancellationToken cancellationToken
     ) =>
 snapshot.FormatAndApplyToBuffer(
     span,
     rules: null,
     cancellationToken: cancellationToken
     );
Ejemplo n.º 2
0
 /// <summary>
 /// format given snapshot and apply text changes to buffer
 /// </summary>
 public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, IEnumerable <IFormattingRule> rules, CancellationToken cancellationToken)
 {
     snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules, cancellationToken);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// format given snapshot and apply text changes to buffer
 /// </summary>
 public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, CancellationToken cancellationToken)
 {
     snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules: null, cancellationToken: cancellationToken);
 }