File tree 3 files changed +12
-5
lines changed
src/PowerShellEditorServices/Services
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,9 @@ public async Task<CodeLens> ResolveCodeLens(
154
154
Title = GetReferenceCountHeader ( referenceLocations . Length ) ,
155
155
Arguments = JArray . FromObject ( new object [ ]
156
156
{
157
- scriptFile . DocumentUri ,
158
- codeLens . Range . Start ,
159
- referenceLocations
157
+ scriptFile . DocumentUri ,
158
+ codeLens . Range . Start ,
159
+ referenceLocations
160
160
} ,
161
161
LspSerializer . Instance . JsonSerializer )
162
162
}
Original file line number Diff line number Diff line change 5
5
using System . Collections . Generic ;
6
6
using System . Threading ;
7
7
using System . Threading . Tasks ;
8
+ using Newtonsoft . Json . Linq ;
8
9
using Microsoft . Extensions . Logging ;
9
10
using Microsoft . PowerShell . EditorServices . Services ;
10
11
using Microsoft . PowerShell . EditorServices . Services . TextDocument ;
11
12
using Microsoft . PowerShell . EditorServices . Utility ;
12
13
using OmniSharp . Extensions . LanguageServer . Protocol . Client . Capabilities ;
13
14
using OmniSharp . Extensions . LanguageServer . Protocol . Document ;
14
15
using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
16
+ using OmniSharp . Extensions . LanguageServer . Protocol . Serialization ;
15
17
16
18
namespace Microsoft . PowerShell . EditorServices . Handlers
17
19
{
@@ -131,7 +133,11 @@ public override async Task<CommandOrCodeActionContainer> Handle(CodeActionParams
131
133
{
132
134
Title = title ,
133
135
Name = "PowerShell.ShowCodeActionDocumentation" ,
134
- Arguments = Newtonsoft . Json . Linq . JArray . FromObject ( new [ ] { diagnostic . Code ? . String } )
136
+ Arguments = JArray . FromObject ( new object [ ]
137
+ {
138
+ diagnostic . Code ? . String
139
+ } ,
140
+ LspSerializer . Instance . JsonSerializer )
135
141
}
136
142
} ) ;
137
143
}
Original file line number Diff line number Diff line change 12
12
using Microsoft . PowerShell . EditorServices . Services . Configuration ;
13
13
using Newtonsoft . Json . Linq ;
14
14
using OmniSharp . Extensions . LanguageServer . Protocol . Models ;
15
+ using OmniSharp . Extensions . LanguageServer . Protocol . Serialization ;
15
16
using OmniSharp . Extensions . LanguageServer . Protocol . Server ;
16
17
using OmniSharp . Extensions . LanguageServer . Protocol . Window ;
17
18
using OmniSharp . Extensions . LanguageServer . Protocol . Workspace ;
@@ -158,7 +159,7 @@ private void SendFeatureChangesTelemetry(LanguageServerSettingsWrapper incomingS
158
159
ExtensionData = new PsesTelemetryEvent
159
160
{
160
161
EventName = "NonDefaultPsesFeatureConfiguration" ,
161
- Data = JObject . FromObject ( configChanges )
162
+ Data = JObject . FromObject ( configChanges , LspSerializer . Instance . JsonSerializer )
162
163
}
163
164
} ) ;
164
165
}
You can’t perform that action at this time.
0 commit comments