We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 243632f commit b21b1fdCopy full SHA for b21b1fd
Transpilers/Include.psx.ps1
@@ -130,8 +130,9 @@ if ($psCmdlet.ParameterSetName -eq 'ScriptBlock' -or
130
} elseif ($VariableAst.VariablePath -notmatch '^null$') {
131
[ScriptBlock]::Create(@"
132
foreach (`$file in (Get-ChildItem -Path "$($VariableAst)" -Filter "$FilePath" -Recurse)) {
133
- if (`$file.Extension -ne '.ps1') { continue }
+ if (`$file.Extension -ne '.ps1') { continue } # Skip if the extension is not .ps1
134
+ if (`$file.Name -match '\.ps1\.ps1$') { continue } # Skip if the file is a source generator.
135
. `$file.FullName
-}
136
+}
137
"@)
138
}
0 commit comments