1212using Microsoft . CodeAnalysis ;
1313using Microsoft . CodeAnalysis . CodeLens ;
1414using Microsoft . CodeAnalysis . Editor ;
15- using Microsoft . CodeAnalysis . Editor . Wpf ;
1615using Microsoft . CodeAnalysis . Host . Mef ;
16+ using Microsoft . CodeAnalysis . LanguageServer ;
1717using Microsoft . VisualStudio . Core . Imaging ;
1818using Microsoft . VisualStudio . Language . CodeLens ;
1919using Microsoft . VisualStudio . Language . CodeLens . Remoting ;
@@ -104,7 +104,7 @@ private async Task PollForUpdatesAsync()
104104
105105 var projectVersions = await _lazyCodeLensCallbackService . Value . InvokeAsync < ImmutableDictionary < Guid , string > > (
106106 this ,
107- nameof ( ICodeLensContext . GetProjectVersionsAsync ) ,
107+ " GetProjectVersionsAsync" ,
108108 [ keys ] ,
109109 _cancellationTokenSource . Token ) . ConfigureAwait ( false ) ;
110110
@@ -200,7 +200,7 @@ public void Dispose()
200200 // raw data from Roslyn OOP such as razor find all reference results
201201 var referenceCountOpt = await _callbackService . InvokeAsync < ReferenceCount ? > (
202202 _owner ,
203- nameof ( ICodeLensContext . GetReferenceCountAsync ) ,
203+ " GetReferenceCountAsync" ,
204204 [ Descriptor , descriptorContext , _calculatedReferenceCount ] ,
205205 cancellationToken ) . ConfigureAwait ( false ) ;
206206
@@ -243,7 +243,7 @@ public async Task<CodeLensDetailsDescriptor> GetDetailsAsync(CodeLensDescriptorC
243243 // raw data from Roslyn OOP such as razor find all reference results
244244 var referenceLocationDescriptors = await _callbackService . InvokeAsync < ( string projectVersion , ImmutableArray < ReferenceLocationDescriptor > references ) ? > (
245245 _owner ,
246- nameof ( ICodeLensContext . FindReferenceLocationsAsync ) ,
246+ " FindReferenceLocationsAsync" ,
247247 [ Descriptor , descriptorContext ] ,
248248 cancellationToken ) . ConfigureAwait ( false ) ;
249249
@@ -263,8 +263,8 @@ public async Task<CodeLensDetailsDescriptor> GetDetailsAsync(CodeLensDescriptorC
263263 ImageId imageId = default ;
264264 if ( referenceLocationDescriptor . Glyph . HasValue )
265265 {
266- var moniker = referenceLocationDescriptor . Glyph . Value . GetImageMoniker ( ) ;
267- imageId = new ImageId ( moniker . Guid , moniker . Id ) ;
266+ var imageData = referenceLocationDescriptor . Glyph . Value . GetVsImageData ( ) ;
267+ imageId = new ImageId ( imageData . guid , imageData . id ) ;
268268 }
269269
270270 return new CodeLensDetailEntryDescriptor ( )
0 commit comments