@@ -87,7 +87,7 @@ public class PSConsoleReadLineOptions
87
87
88
88
// Use dark black by default for the suggestion text.
89
89
// Find the most suitable color using https://stackoverflow.com/a/33206814
90
- public const string DefaultPredictionColor = "\x1b [38;5;238m" ;
90
+ public const string DefaultInlinePredictionColor = "\x1b [38;5;238m" ;
91
91
92
92
public static EditMode DefaultEditMode = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
93
93
? EditMode . Windows
@@ -451,10 +451,10 @@ public object SelectionColor
451
451
set => _selectionColor = VTColorUtils . AsEscapeSequence ( value ) ;
452
452
}
453
453
454
- public object PredictionColor
454
+ public object InlinePredictionColor
455
455
{
456
- get => _predictionColor ;
457
- set => _predictionColor = VTColorUtils . AsEscapeSequence ( value ) ;
456
+ get => _inlinePredictionColor ;
457
+ set => _inlinePredictionColor = VTColorUtils . AsEscapeSequence ( value ) ;
458
458
}
459
459
460
460
internal string _defaultTokenColor ;
@@ -471,7 +471,7 @@ public object PredictionColor
471
471
internal string _emphasisColor ;
472
472
internal string _errorColor ;
473
473
internal string _selectionColor ;
474
- internal string _predictionColor ;
474
+ internal string _inlinePredictionColor ;
475
475
476
476
internal void ResetColors ( )
477
477
{
@@ -489,7 +489,7 @@ internal void ResetColors()
489
489
MemberColor = DefaultNumberColor ;
490
490
EmphasisColor = DefaultEmphasisColor ;
491
491
ErrorColor = DefaultErrorColor ;
492
- PredictionColor = DefaultPredictionColor ;
492
+ InlinePredictionColor = DefaultInlinePredictionColor ;
493
493
494
494
var bg = Console . BackgroundColor ;
495
495
if ( fg == VTColorUtils . UnknownColor || bg == VTColorUtils . UnknownColor )
@@ -526,7 +526,7 @@ internal void SetColor(string property, object value)
526
526
{ "Number" , ( o , v ) => o . NumberColor = v } ,
527
527
{ "Member" , ( o , v ) => o . MemberColor = v } ,
528
528
{ "Selection" , ( o , v ) => o . SelectionColor = v } ,
529
- { "Prediction " , ( o , v ) => o . PredictionColor = v } ,
529
+ { "InlinePrediction " , ( o , v ) => o . InlinePredictionColor = v } ,
530
530
} ;
531
531
532
532
Interlocked . CompareExchange ( ref ColorSetters , setters , null ) ;
0 commit comments