Skip to content

Commit

Permalink
Revert ":bug: dotnet provider is source only" (#638)
Browse files Browse the repository at this point in the history
Reverts #629
  • Loading branch information
pranavgaikwad committed Jul 3, 2024
1 parent 20b800a commit 6ecda83
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -41,7 +41,6 @@ type dotnetCondition struct {

// Example:
// dotnet.referenced:
//
// namespace: System.Web.Mvc
// pattern: HttpNotFound
type referenceCondition struct {
Expand All @@ -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")
}

Expand Down

0 comments on commit 6ecda83

Please sign in to comment.