func (s *server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{ … }
type commandHandler …
func (h *commandHandler) Modules(ctx context.Context, args command.ModulesArgs) (command.ModulesResult, error) { … }
func (h *commandHandler) Packages(ctx context.Context, args command.PackagesArgs) (command.PackagesResult, error) { … }
func (h *commandHandler) MaybePromptForTelemetry(ctx context.Context) error { … }
func (*commandHandler) AddTelemetryCounters(_ context.Context, args command.AddTelemetryCountersArgs) error { … }
func (c *commandHandler) AddTest(ctx context.Context, loc protocol.Location) (*protocol.WorkspaceEdit, error) { … }
type commandConfig …
type commandDeps …
type commandFunc …
const CommandCanceled …
const CommandFailed …
const CommandCompleted …
func (c *commandHandler) run(ctx context.Context, cfg commandConfig, run commandFunc) (err error) { … }
func (c *commandHandler) ApplyFix(ctx context.Context, args command.ApplyFixArgs) (*protocol.WorkspaceEdit, error) { … }
func (c *commandHandler) RegenerateCgo(ctx context.Context, args command.URIArg) error { … }
func (c *commandHandler) modifyState(ctx context.Context, source ModificationSource, work func() (*cache.Snapshot, func(), error)) error { … }
func (c *commandHandler) CheckUpgrades(ctx context.Context, args command.CheckUpgradesArgs) error { … }
func (c *commandHandler) AddDependency(ctx context.Context, args command.DependencyArgs) error { … }
func (c *commandHandler) UpgradeDependency(ctx context.Context, args command.DependencyArgs) error { … }
func (c *commandHandler) ResetGoModDiagnostics(ctx context.Context, args command.ResetGoModDiagnosticsArgs) error { … }
func (c *commandHandler) GoGetModule(ctx context.Context, args command.DependencyArgs) error { … }
func (c *commandHandler) UpdateGoSum(ctx context.Context, args command.URIArgs) error { … }
func (c *commandHandler) Tidy(ctx context.Context, args command.URIArgs) error { … }
func (c *commandHandler) Vendor(ctx context.Context, args command.URIArg) error { … }
func (c *commandHandler) EditGoDirective(ctx context.Context, args command.EditGoDirectiveArgs) error { … }
func (c *commandHandler) RemoveDependency(ctx context.Context, args command.RemoveDependencyArgs) error { … }
func dropDependency(pm *cache.ParsedModule, modulePath string) ([]protocol.TextEdit, error) { … }
func (c *commandHandler) Test(ctx context.Context, uri protocol.DocumentURI, tests, benchmarks []string) error { … }
func (c *commandHandler) Doc(ctx context.Context, args command.DocArgs) (protocol.URI, error) { … }
func (c *commandHandler) RunTests(ctx context.Context, args command.RunTestsArgs) error { … }
func (c *commandHandler) runTests(ctx context.Context, snapshot *cache.Snapshot, work *progress.WorkDone, uri protocol.DocumentURI, tests, benchmarks []string) error { … }
func (c *commandHandler) Generate(ctx context.Context, args command.GenerateArgs) error { … }
func (c *commandHandler) GoGetPackage(ctx context.Context, args command.GoGetPackageArgs) error { … }
func (s *server) runGoModUpdateCommands(ctx context.Context, snapshot *cache.Snapshot, uri protocol.DocumentURI, run func(invoke func(...string) (*bytes.Buffer, error)) error) error { … }
func computeEditChange(ctx context.Context, snapshot *cache.Snapshot, uri protocol.DocumentURI, newContent []byte) (protocol.DocumentChange, error) { … }
func applyChanges(ctx context.Context, cli protocol.Client, changes []protocol.DocumentChange) error { … }
func runGoGetModule(invoke func(...string) (*bytes.Buffer, error), addRequire bool, args []string) error { … }
func addModuleRequire(invoke func(...string) (*bytes.Buffer, error), args []string) error { … }
func (s *server) getUpgrades(ctx context.Context, snapshot *cache.Snapshot, uri protocol.DocumentURI, modules []string) (map[string]string, error) { … }
func (c *commandHandler) GCDetails(ctx context.Context, uri protocol.DocumentURI) error { … }
func (c *commandHandler) ToggleGCDetails(ctx context.Context, args command.URIArg) error { … }
func (c *commandHandler) ListKnownPackages(ctx context.Context, args command.URIArg) (command.ListKnownPackagesResult, error) { … }
func (c *commandHandler) ListImports(ctx context.Context, args command.URIArg) (command.ListImportsResult, error) { … }
func (c *commandHandler) AddImport(ctx context.Context, args command.AddImportArgs) error { … }
func (c *commandHandler) ExtractToNewFile(ctx context.Context, args protocol.Location) error { … }
func (c *commandHandler) StartDebugging(ctx context.Context, args command.DebuggingArgs) (result command.DebuggingResult, _ error) { … }
func (c *commandHandler) StartProfile(ctx context.Context, args command.StartProfileArgs) (result command.StartProfileResult, _ error) { … }
func (c *commandHandler) StopProfile(ctx context.Context, args command.StopProfileArgs) (result command.StopProfileResult, _ error) { … }
func (c *commandHandler) FetchVulncheckResult(ctx context.Context, arg command.URIArg) (map[protocol.DocumentURI]*vulncheck.Result, error) { … }
const GoVulncheckCommandTitle …
func (c *commandHandler) Vulncheck(ctx context.Context, args command.VulncheckArgs) (command.VulncheckResult, error) { … }
func (c *commandHandler) RunGovulncheck(ctx context.Context, args command.VulncheckArgs) (command.RunVulncheckResult, error) { … }
func (c *commandHandler) MemStats(ctx context.Context) (command.MemStatsResult, error) { … }
func (c *commandHandler) WorkspaceStats(ctx context.Context) (command.WorkspaceStatsResult, error) { … }
func collectViewStats(ctx context.Context, view *cache.View) (command.ViewStats, error) { … }
func collectPackageStats(mps []*metadata.Package) command.PackageStats { … }
func (c *commandHandler) RunGoWorkCommand(ctx context.Context, args command.RunGoWorkArgs) error { … }
func (c *commandHandler) invokeGoWork(ctx context.Context, viewDir, gowork string, args []string) error { … }
func showMessage(ctx context.Context, cli protocol.Client, typ protocol.MessageType, message string) bool { … }
func openClientBrowser(ctx context.Context, cli protocol.Client, title string, url protocol.URI, opts *settings.Options) { … }
func openClientEditor(ctx context.Context, cli protocol.Client, loc protocol.Location, opts *settings.Options) { … }
func showDocumentImpl(ctx context.Context, cli protocol.Client, url protocol.URI, rangeOpt *protocol.Range, opts *settings.Options) { … }
func (c *commandHandler) ChangeSignature(ctx context.Context, args command.ChangeSignatureArgs) (*protocol.WorkspaceEdit, error) { … }
func (c *commandHandler) DiagnoseFiles(ctx context.Context, args command.DiagnoseFilesArgs) error { … }
func (c *commandHandler) Views(ctx context.Context) ([]command.View, error) { … }
func (c *commandHandler) FreeSymbols(ctx context.Context, viewID string, loc protocol.Location) error { … }
func (c *commandHandler) Assembly(ctx context.Context, viewID, packageID, symbol string) error { … }
func (c *commandHandler) ClientOpenURL(ctx context.Context, url string) error { … }
func (c *commandHandler) ScanImports(ctx context.Context) error { … }