1
- // Copyright (c) Microsoft Corporation.
1
+ // Copyright (c) Microsoft Corporation.
2
2
// Licensed under the MIT License.
3
3
4
+ using System . Threading ;
5
+ using System . Threading . Tasks ;
4
6
using Microsoft . Extensions . Logging ;
5
7
using Microsoft . PowerShell . EditorServices . Services ;
6
- using Microsoft . PowerShell . EditorServices . Services . DebugAdapter ;
7
8
using Microsoft . PowerShell . EditorServices . Services . PowerShell ;
8
9
using Microsoft . PowerShell . EditorServices . Services . PowerShell . Debugging ;
9
10
using Microsoft . PowerShell . EditorServices . Services . PowerShell . Execution ;
10
- using Microsoft . PowerShell . EditorServices . Services . PowerShell . Runspace ;
11
11
using Microsoft . PowerShell . EditorServices . Services . TextDocument ;
12
12
using Microsoft . PowerShell . EditorServices . Utility ;
13
13
using OmniSharp . Extensions . DebugAdapter . Protocol . Events ;
14
14
using OmniSharp . Extensions . DebugAdapter . Protocol . Requests ;
15
15
using OmniSharp . Extensions . DebugAdapter . Protocol . Server ;
16
- using System . Management . Automation ;
17
- using System . Management . Automation . Language ;
18
- using System . Threading ;
19
- using System . Threading . Tasks ;
20
16
21
17
namespace Microsoft . PowerShell . EditorServices . Handlers
22
18
{
@@ -38,9 +34,7 @@ internal class ConfigurationDoneHandler : IConfigurationDoneHandler
38
34
private readonly DebugEventHandlerService _debugEventHandlerService ;
39
35
private readonly IInternalPowerShellExecutionService _executionService ;
40
36
private readonly WorkspaceService _workspaceService ;
41
-
42
37
private readonly IPowerShellDebugContext _debugContext ;
43
- private readonly IRunspaceContext _runspaceContext ;
44
38
45
39
public ConfigurationDoneHandler (
46
40
ILoggerFactory loggerFactory ,
@@ -50,8 +44,7 @@ public ConfigurationDoneHandler(
50
44
DebugEventHandlerService debugEventHandlerService ,
51
45
IInternalPowerShellExecutionService executionService ,
52
46
WorkspaceService workspaceService ,
53
- IPowerShellDebugContext debugContext ,
54
- IRunspaceContext runspaceContext )
47
+ IPowerShellDebugContext debugContext )
55
48
{
56
49
_logger = loggerFactory . CreateLogger < ConfigurationDoneHandler > ( ) ;
57
50
_debugAdapterServer = debugAdapterServer ;
@@ -61,7 +54,6 @@ public ConfigurationDoneHandler(
61
54
_executionService = executionService ;
62
55
_workspaceService = workspaceService ;
63
56
_debugContext = debugContext ;
64
- _runspaceContext = runspaceContext ;
65
57
}
66
58
67
59
public Task < ConfigurationDoneResponse > Handle ( ConfigurationDoneArguments request , CancellationToken cancellationToken )
0 commit comments