command

package
v0.0.0-...-df5614f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const DoTrust = "Trust folders and continue"
View Source
const DontTrust = "Don't trust folders"

Variables

This section is empty.

Functions

func CreateFromCommandData

func CreateFromCommandData(
	commandData khulnasoft.CommandData,
	srv lsp.Server,
	authService khulnasoft.AuthenticationService,
	learnService learn.Service,
	notifier noti.Notifier,
	issueProvider ide.IssueProvider,
	codeApiClient KhulnasoftCodeHttpClient,
) (khulnasoft.Command, error)

func GetTrustMessage

func GetTrustMessage(untrusted []*workspace.Folder) string

func HandleUntrustedFolders

func HandleUntrustedFolders(ctx context.Context, srv lsp.Server)

func NewService

func NewService(authService khulnasoft.AuthenticationService, notifier noti.Notifier, learnService learn.Service, issueProvider ide.IssueProvider, codeApiClient KhulnasoftCodeHttpClient) khulnasoft.CommandService

func Service

func Service() khulnasoft.CommandService

Service returns the singleton instance of the command service. If not already created, it will create a new instance.

func SetService

func SetService(service khulnasoft.CommandService)

SetService sets the singleton instance of the command service.

Types

type KhulnasoftCodeHttpClient

type KhulnasoftCodeHttpClient interface {
	SubmitAutofixFeedback(ctx context.Context, fixId string, positive bool) error
}

type RangeDto

type RangeDto = map[string]interface{}

type RangePositionDto

type RangePositionDto = map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL