From 6ecda839674dc0bfca81db799fb7194f30be8dd4 Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Wed, 3 Jul 2024 11:18:25 -0400 Subject: [PATCH] Revert ":bug: dotnet provider is source only" (#638) Reverts konveyor/analyzer-lsp#629 --- .../dotnet-external-provider/pkg/dotnet/provider.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/external-providers/dotnet-external-provider/pkg/dotnet/provider.go b/external-providers/dotnet-external-provider/pkg/dotnet/provider.go index 0d40be43..8872a007 100644 --- a/external-providers/dotnet-external-provider/pkg/dotnet/provider.go +++ b/external-providers/dotnet-external-provider/pkg/dotnet/provider.go @@ -9,16 +9,16 @@ import ( "os/exec" "path/filepath" + "github.com/swaggest/openapi-go/openapi3" "github.com/go-logr/logr" "github.com/konveyor/analyzer-lsp/provider" - "github.com/swaggest/openapi-go/openapi3" "go.lsp.dev/jsonrpc2" "go.lsp.dev/protocol" "go.lsp.dev/uri" ) -type dotnetProvider struct { +type dotnetProvider struct{ Log logr.Logger } @@ -41,7 +41,6 @@ type dotnetCondition struct { // Example: // dotnet.referenced: -// // namespace: System.Web.Mvc // pattern: HttpNotFound type referenceCondition struct { @@ -67,7 +66,7 @@ func (p *dotnetProvider) Capabilities() []provider.Capability { func (p *dotnetProvider) Init(ctx context.Context, log logr.Logger, config provider.InitConfig) (provider.ServiceClient, error) { var mode provider.AnalysisMode = provider.AnalysisMode(config.AnalysisMode) - if mode != provider.SourceOnlyAnalysisMode { + if mode != provider.FullAnalysisMode { return nil, fmt.Errorf("only full analysis is supported") }