Skip to content

Commit f675744

Browse files
authored
Fix incompatible New-Guid usage in start script (#699)
1 parent 1031e22 commit f675744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/PowerShellEditorServices/Start-EditorServices.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function New-NamedPipeName {
172172
# We try 10 times to find a valid pipe name
173173
for ($i = 0; $i -lt 10; $i++) {
174174
# add a guid to make the pipe unique
175-
$PipeName = "PSES_$((New-Guid).Guid)"
175+
$PipeName = "PSES_$([guid]::NewGuid())"
176176

177177
if ((Test-NamedPipeName -PipeName $PipeName)) {
178178
return $PipeName

0 commit comments

Comments
 (0)