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 22ffb10 commit 508aba0Copy full SHA for 508aba0
PotentialContribution/EditFunction.psm1
@@ -361,6 +361,11 @@ function Edit-Code {
361
if($File) {
362
$LastWriteTime = (Get-Item $File).LastWriteTime
363
364
+ # If it's a temp file, they're editing a function, so we have to wait!
365
+ if($File.EndsWith(".tmp.ps1") -and $File.StartsWith(([IO.Path]::GetTempPath()))) {
366
+ $Wait = $true
367
+ }
368
+
369
# Avoid errors if Parameter is null/empty.
370
Write-Verbose "$PSEditor '$File'"
371
if ($PSEditor.Parameters)
0 commit comments