File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,9 @@ private void DynamicHelpImpl(bool isFullHelp)
151
151
string commandName = null ;
152
152
string parameterName = null ;
153
153
154
+ // Simply return if nothing is rendered yet.
155
+ if ( _singleton . _tokens == null ) { return ; }
156
+
154
157
foreach ( var token in _singleton . _tokens )
155
158
{
156
159
var extent = token . Extent ;
Original file line number Diff line number Diff line change @@ -97,6 +97,13 @@ private static PSObject GetParameterHelpObject(string description)
97
97
return paramHelp ;
98
98
}
99
99
100
+ [ SkippableFact ]
101
+ public void DynHelp_GetFullHelp_OnEmptyLine ( )
102
+ {
103
+ TestSetup ( KeyMode . Cmd ) ;
104
+ Test ( "" , Keys ( _ . F1 , _ . Enter ) ) ;
105
+ }
106
+
100
107
[ SkippableFact ]
101
108
public void DynHelp_GetFullHelp ( )
102
109
{
@@ -108,6 +115,13 @@ public void DynHelp_GetFullHelp()
108
115
) ) ;
109
116
}
110
117
118
+ [ SkippableFact ]
119
+ public void DynHelp_GetParameterHelp_OnEmptyLine ( )
120
+ {
121
+ TestSetup ( KeyMode . Cmd ) ;
122
+ Test ( "" , Keys ( _ . Alt_h , _ . Enter ) ) ;
123
+ }
124
+
111
125
[ SkippableFact ]
112
126
public void DynHelp_GetParameterHelp_And_Clear ( )
113
127
{
You can’t perform that action at this time.
0 commit comments