Open lethalshadow opened 7 years ago
Hi @lethalshadow, I am working on it.
How is this proceeding?
@OsirisTerje , I have made some progress including refactor the project structure, and adding new code. Currently, I am blocked by a issue that VS2017 does not trigger data point creation code which is used to trigger the code for metric calculation.
I had the same problem with VS 2017, but it turned out to be a problem with ICodeLensDataPointProvider
implementation.
Try adding an Importing constructor
[ImportingConstructor]
public DataPointProvider([Import(typeof(SVsServiceProvider))] IServiceProvider service, IVisualStudioIntegrationService integration)
{
/// ... some ctor body
}
Also I have switched to Microsoft.VisualStudio.CodeSense.Roslyn which contains the Microsoft.VisualStudio.Alm.Roslyn.Client
namespace
The SVsServiceProvider
type can be found in public Microsoft.VisualStudio.Shell.Framework
assembly.
@Brukwa , thank you for your help. I will give it a try.
Hi @jeffchen-codingconsultantco , my guess is that you abandoned the project, am I right?
Hi @jeffchen-codingconsultantco , my guess is that you abandoned the project, am I right?
Microsoft has opened CodeLens API for 3rd party extension. I guess I will have a look if there is a chance to migrate to official API. However, I guess other extension vendor has already started to provide new functionality base on this new API.
Well it is somewhat official: VSSDK-Extensibility-Samples From what I saw theses classes are even documented.
Could this extension be built for Visual Studio 2017 as well?