File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 174
174
# (this can simplify development of ScriptProperties, Methods, and other files).
175
175
}
176
176
177
- # Skip format/view files (this allows them to be in the same directory as types, if that is preferred)
178
- if ($item.Name -match ' \.(?>format|view|control)\.ps1$' ) {
179
- continue
180
- }
177
+ # Do not Skip format/view/control files (this allows them to be in the same directory as types, if that is preferred)
178
+ $isFormatFile = $item.Name -match ' \.(?>format|view|control)\.ps1$'
181
179
182
180
$itemName =
183
181
$item.Name.Substring (0 , $item.Name.Length - $item.Extension.Length )
193
191
$isScript = $false
194
192
}
195
193
194
+ # Skip empty scripts, since they will cause the .types.ps1xml to not load.
196
195
if ($isScript -and -not ($scriptBlock -replace ' \s' )) {
197
196
continue
198
197
}
You can’t perform that action at this time.
0 commit comments