@@ -101,6 +101,7 @@ public class PSConsoleReadLineOptions
101
101
public const string DefaultInlinePredictionColor = "\x1b [97;2;3m" ;
102
102
public const string DefaultListPredictionColor = "\x1b [33m" ;
103
103
public const string DefaultListPredictionSelectedColor = "\x1b [48;5;238m" ;
104
+ public const string DefaultListPredictionTooltipColor = "\x1b [97;2;3m" ;
104
105
105
106
public static EditMode DefaultEditMode = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
106
107
? EditMode . Windows
@@ -495,6 +496,12 @@ public object ListPredictionSelectedColor
495
496
set => _listPredictionSelectedColor = VTColorUtils . AsEscapeSequence ( value ) ;
496
497
}
497
498
499
+ public object ListPredictionTooltipColor
500
+ {
501
+ get => _listPredictionTooltipColor ;
502
+ set => _listPredictionTooltipColor = VTColorUtils . AsEscapeSequence ( value ) ;
503
+ }
504
+
498
505
internal string _defaultTokenColor ;
499
506
internal string _commentColor ;
500
507
internal string _keywordColor ;
@@ -512,6 +519,7 @@ public object ListPredictionSelectedColor
512
519
internal string _inlinePredictionColor ;
513
520
internal string _listPredictionColor ;
514
521
internal string _listPredictionSelectedColor ;
522
+ internal string _listPredictionTooltipColor ;
515
523
516
524
internal void ResetColors ( )
517
525
{
@@ -532,6 +540,7 @@ internal void ResetColors()
532
540
InlinePredictionColor = DefaultInlinePredictionColor ;
533
541
ListPredictionColor = DefaultListPredictionColor ;
534
542
ListPredictionSelectedColor = DefaultListPredictionSelectedColor ;
543
+ ListPredictionTooltipColor = DefaultListPredictionTooltipColor ;
535
544
536
545
var bg = Console . BackgroundColor ;
537
546
if ( fg == VTColorUtils . UnknownColor || bg == VTColorUtils . UnknownColor )
@@ -571,6 +580,7 @@ internal void SetColor(string property, object value)
571
580
{ "InlinePrediction" , ( o , v ) => o . InlinePredictionColor = v } ,
572
581
{ "ListPrediction" , ( o , v ) => o . ListPredictionColor = v } ,
573
582
{ "ListPredictionSelected" , ( o , v ) => o . ListPredictionSelectedColor = v } ,
583
+ { "ListPredictionTooltip" , ( o , v ) => o . ListPredictionTooltipColor = v } ,
574
584
} ;
575
585
576
586
Interlocked . CompareExchange ( ref ColorSetters , setters , null ) ;
0 commit comments