File tree 1 file changed +2
-2
lines changed
src/PowerShellEditorServices/Session
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,14 +199,14 @@ function New-EditorFile {
199
199
[string] $PSEditModule
200
200
)
201
201
202
- Register-EngineEvent -SourceIdentifier PSESRemoteSessionOpenFile -Forward
202
+ Register-EngineEvent -SourceIdentifier PSESRemoteSessionOpenFile -Forward -SupportEvent
203
203
New-Module -ScriptBlock ([Scriptblock]::Create($PSEditModule)) -Name PSEdit | Import-Module -Global
204
204
" ;
205
205
206
206
private const string RemovePSEditFunctionScript = @"
207
207
Get-Module PSEdit | Remove-Module
208
208
209
- Get-EventSubscriber -SourceIdentifier PSESRemoteSessionOpenFile -EA Ignore | Unregister-Event
209
+ Unregister-Event -SourceIdentifier PSESRemoteSessionOpenFile -Force -ErrorAction Ignore
210
210
" ;
211
211
212
212
private const string SetRemoteContentsScript = @"
You can’t perform that action at this time.
0 commit comments