File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/PowerShellEditorServices/Services/TextDocument/Handlers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- //
1
+ //
2
2
// Copyright (c) Microsoft. All rights reserved.
3
3
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4
4
//
@@ -20,7 +20,7 @@ namespace Microsoft.PowerShell.EditorServices.Handlers
20
20
{
21
21
internal class PsesSemanticTokensHandler : SemanticTokensHandlerBase
22
22
{
23
- private static readonly SemanticTokensRegistrationOptions s_registrationOptions = new SemanticTokensRegistrationOptions
23
+ protected override SemanticTokensRegistrationOptions CreateRegistrationOptions ( SemanticTokensCapability capability , ClientCapabilities clientCapabilities ) => new SemanticTokensRegistrationOptions
24
24
{
25
25
DocumentSelector = LspUtils . PowerShellDocumentSelector ,
26
26
Legend = new SemanticTokensLegend ( ) ,
@@ -35,7 +35,6 @@ internal class PsesSemanticTokensHandler : SemanticTokensHandlerBase
35
35
private readonly WorkspaceService _workspaceService ;
36
36
37
37
public PsesSemanticTokensHandler ( ILogger < PsesSemanticTokensHandler > logger , WorkspaceService workspaceService )
38
- : base ( s_registrationOptions )
39
38
{
40
39
_logger = logger ;
41
40
_workspaceService = workspaceService ;
@@ -160,7 +159,7 @@ protected override Task<SemanticTokensDocument> GetSemanticTokensDocument(
160
159
ITextDocumentIdentifierParams @params ,
161
160
CancellationToken cancellationToken )
162
161
{
163
- return Task . FromResult ( new SemanticTokensDocument ( GetRegistrationOptions ( ) . Legend ) ) ;
162
+ return Task . FromResult ( new SemanticTokensDocument ( RegistrationOptions . Legend ) ) ;
164
163
}
165
164
}
166
165
}
You can’t perform that action at this time.
0 commit comments