Skip to content

Commit 8ebedc6

Browse files
Fix type resolution error in Set-ScriptExtent
While resisting the urge to burn the entire file to the ground. Boy did I have some wild style choices five years ago.
1 parent 1341235 commit 8ebedc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/PowerShellEditorServices/Commands/Public/Set-ScriptExtent.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function Set-ScriptExtent {
2525
)
2626
begin {
2727
$fileContext = $psEditor.GetEditorContext().CurrentFile
28-
$extentList = [System.Collections.Generic.List[Microsoft.PowerShell.EditorServices.Extensions.FileScriptExtent, Microsoft.PowerShell.EditorServices]]::new()
28+
$extentList = [System.Collections.Generic.List[[Microsoft.PowerShell.EditorServices.Extensions.FileScriptExtent, Microsoft.PowerShell.EditorServices]]]::new()
2929
}
3030
process {
3131
if ($Extent -isnot [Microsoft.PowerShell.EditorServices.Extensions.FileScriptExtent, Microsoft.PowerShell.EditorServices]) {

0 commit comments

Comments
 (0)