22
22
23
23
namespace Microsoft . PowerShell . EditorServices . Handlers
24
24
{
25
- internal class PsesConfigurationHandler : IDidChangeConfigurationHandler
25
+ internal class PsesConfigurationHandler : DidChangeConfigurationHandlerBase
26
26
{
27
27
private readonly ILogger _logger ;
28
28
private readonly WorkspaceService _workspaceService ;
29
29
private readonly ConfigurationService _configurationService ;
30
30
private readonly PowerShellContextService _powerShellContextService ;
31
31
private readonly ILanguageServerFacade _languageServer ;
32
- private DidChangeConfigurationCapability _capability ;
33
32
private bool _profilesLoaded ;
34
33
private bool _consoleReplStarted ;
35
34
private bool _cwdSet ;
@@ -50,12 +49,7 @@ public PsesConfigurationHandler(
50
49
ConfigurationUpdated += analysisService . OnConfigurationUpdated ;
51
50
}
52
51
53
- public object GetRegistrationOptions ( )
54
- {
55
- return null ;
56
- }
57
-
58
- public async Task < Unit > Handle ( DidChangeConfigurationParams request , CancellationToken cancellationToken )
52
+ public override async Task < Unit > Handle ( DidChangeConfigurationParams request , CancellationToken cancellationToken )
59
53
{
60
54
LanguageServerSettingsWrapper incomingSettings = request . Settings . ToObject < LanguageServerSettingsWrapper > ( ) ;
61
55
if ( incomingSettings == null )
@@ -207,11 +201,6 @@ private void SendFeatureChangesTelemetry(LanguageServerSettingsWrapper incomingS
207
201
} ) ;
208
202
}
209
203
210
- public void SetCapability ( DidChangeConfigurationCapability capability )
211
- {
212
- _capability = capability ;
213
- }
214
-
215
204
public event EventHandler < LanguageServerSettings > ConfigurationUpdated ;
216
205
}
217
206
}
0 commit comments