File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/PowerShellEditorServices/Session Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ public class RemoteFileManager
50
50
$params = @{ Path=$filePathName; Raw=$true }
51
51
if ($PSVersionTable.PSEdition -eq 'Core')
52
52
{
53
- $params += @{ AsByteStream=$true }
53
+ $params[' AsByteStream'] =$true
54
54
}
55
55
else
56
56
{
57
- $params += @{ Encoding='Byte' }
57
+ $params[' Encoding'] ='Byte'
58
58
}
59
59
60
60
$contentBytes = Get-Content @params
@@ -99,11 +99,11 @@ public class RemoteFileManager
99
99
$params = @{ Path=$RemoteFilePath; Value=$Content; Force=$true }
100
100
if ($PSVersionTable.PSEdition -eq 'Core')
101
101
{
102
- $params += @{ AsByteStream=$true }
102
+ $params[' AsByteStream'] =$true
103
103
}
104
104
else
105
105
{
106
- $params += @{ Encoding='Byte' }
106
+ $params[' Encoding'] ='Byte'
107
107
}
108
108
109
109
Set-Content @params 2>&1
You can’t perform that action at this time.
0 commit comments