quickactions

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionJavaBuild

type ActionJavaBuild struct{}

ActionJavaBuild is an action that builds a java target.

func (*ActionJavaBuild) CommandName

func (a *ActionJavaBuild) CommandName() string

CommandName returns the name of the command that will be executed.

func (*ActionJavaBuild) Execute

func (a *ActionJavaBuild) Execute(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) error

Execute runs the action, using the given arguments. ExecuteParams will provide values from the controller.

func (*ActionJavaBuild) IsRelevantDocument

func (a *ActionJavaBuild) IsRelevantDocument(s *entity.Session, document protocol.TextDocumentItem) bool

IsRelevantDocument returns true if the action is relevant for the given document.

func (*ActionJavaBuild) ProcessDocument

func (a *ActionJavaBuild) ProcessDocument(ctx context.Context, document protocol.TextDocumentItem) ([]interface{}, error)

ProcessDocument processes the given document, returning a list of CodeLens to be displayed.

func (*ActionJavaBuild) ProvideWorkDoneProgressParams

func (a *ActionJavaBuild) ProvideWorkDoneProgressParams(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) (*action.ProgressInfoParams, error)

ProvideWorkDoneProgressParams returns info to display on progress of this action during execution

func (*ActionJavaBuild) ShouldEnable

func (a *ActionJavaBuild) ShouldEnable(s *entity.Session, config entity.MonorepoConfigEntry) bool

ShouldEnable returns true if the action should be enabled for the given session.

type ActionJavaSync

type ActionJavaSync struct{}

ActionJavaSync is an action that builds a java target.

func (*ActionJavaSync) CommandName

func (a *ActionJavaSync) CommandName() string

CommandName returns the name of the command that will be executed.

func (*ActionJavaSync) Execute

func (a *ActionJavaSync) Execute(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) error

Execute runs the action, using the given arguments. ExecuteParams will provide values from the controller.

func (*ActionJavaSync) IsRelevantDocument

func (a *ActionJavaSync) IsRelevantDocument(s *entity.Session, document protocol.TextDocumentItem) bool

IsRelevantDocument returns true if the action is relevant for the given document.

func (*ActionJavaSync) ProcessDocument

func (a *ActionJavaSync) ProcessDocument(ctx context.Context, document protocol.TextDocumentItem) ([]interface{}, error)

ProcessDocument processes the given document, returning a list of CodeLens to be displayed.

func (*ActionJavaSync) ProvideWorkDoneProgressParams

func (a *ActionJavaSync) ProvideWorkDoneProgressParams(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) (*action.ProgressInfoParams, error)

ProvideWorkDoneProgressParams returns info to display on progress of this action during execution

func (*ActionJavaSync) ShouldEnable

func (a *ActionJavaSync) ShouldEnable(s *entity.Session, monorepo entity.MonorepoConfigEntry) bool

ShouldEnable returns true if the action should be enabled for the given session.

type ActionJavaTestExplorer

type ActionJavaTestExplorer struct{}

ActionJavaTestExplorer is an action that calls VS Code's command to open the Testing panel.

func (*ActionJavaTestExplorer) CommandName

func (a *ActionJavaTestExplorer) CommandName() string

CommandName returns an empty command, as uLSP will not need to register a command for this code action.

func (*ActionJavaTestExplorer) Execute

Execute is not implemented for this action, as it will be handled by the IDE.

func (*ActionJavaTestExplorer) IsRelevantDocument

func (a *ActionJavaTestExplorer) IsRelevantDocument(s *entity.Session, document protocol.TextDocumentItem) bool

IsRelevantDocument returns whether the action should be enabled for the given document.

func (*ActionJavaTestExplorer) ProcessDocument

func (a *ActionJavaTestExplorer) ProcessDocument(ctx context.Context, document protocol.TextDocumentItem) ([]interface{}, error)

ProcessDocument processes the given document, returning a list of CodeLens to be displayed.

func (*ActionJavaTestExplorer) ProvideWorkDoneProgressParams

func (a *ActionJavaTestExplorer) ProvideWorkDoneProgressParams(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) (*action.ProgressInfoParams, error)

ProvideWorkDoneProgressParams returns info to display on progress of this action during execution

func (*ActionJavaTestExplorer) ShouldEnable

func (a *ActionJavaTestExplorer) ShouldEnable(s *entity.Session, monorepo entity.MonorepoConfigEntry) bool

ShouldEnable enables this in the Java monorepo and only when a VS Code client is connected.

type ActionJavaTestExplorerInfo

type ActionJavaTestExplorerInfo struct{}

ActionJavaTestExplorerInfo is an action that displays basic getting started information to transition Java code lens users to the Test Explorer.

func (*ActionJavaTestExplorerInfo) CommandName

func (a *ActionJavaTestExplorerInfo) CommandName() string

CommandName returns the name of the command to be executed.

func (*ActionJavaTestExplorerInfo) Execute

Execute outputs a static information message to the client's output channel.

func (*ActionJavaTestExplorerInfo) IsRelevantDocument

func (a *ActionJavaTestExplorerInfo) IsRelevantDocument(s *entity.Session, document protocol.TextDocumentItem) bool

IsRelevantDocument returns whether the action should be enabled for the given document.

func (*ActionJavaTestExplorerInfo) ProcessDocument

func (a *ActionJavaTestExplorerInfo) ProcessDocument(ctx context.Context, document protocol.TextDocumentItem) ([]interface{}, error)

ProcessDocument processes the given document, returning a list of CodeLens to be displayed.

func (*ActionJavaTestExplorerInfo) ProvideWorkDoneProgressParams

func (a *ActionJavaTestExplorerInfo) ProvideWorkDoneProgressParams(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) (*action.ProgressInfoParams, error)

ProvideWorkDoneProgressParams returns info to display on progress of this action during execution

func (*ActionJavaTestExplorerInfo) ShouldEnable

ShouldEnable enables this in the Java monorepo and only when a VS Code client is connected.

type ActionJavaTestRun

type ActionJavaTestRun struct{}

ActionJavaTestRun is an action that runs a Java test.

func (*ActionJavaTestRun) CommandName

func (a *ActionJavaTestRun) CommandName() string

CommandName returns the name of the command to be executed.

func (*ActionJavaTestRun) Execute

func (a *ActionJavaTestRun) Execute(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) error

Execute runs the action, using the given arguments. ExecuteParams will provide values from the controller.

func (*ActionJavaTestRun) IsRelevantDocument

func (a *ActionJavaTestRun) IsRelevantDocument(s *entity.Session, document protocol.TextDocumentItem) bool

IsRelevantDocument returns whether the action should be enabled for the given document.

func (*ActionJavaTestRun) ProcessDocument

func (a *ActionJavaTestRun) ProcessDocument(ctx context.Context, document protocol.TextDocumentItem) ([]interface{}, error)

ProcessDocument processes the given document, returning a list of CodeLens to be displayed.

func (*ActionJavaTestRun) ProvideWorkDoneProgressParams

func (a *ActionJavaTestRun) ProvideWorkDoneProgressParams(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) (*action.ProgressInfoParams, error)

ProvideWorkDoneProgressParams returns info to display on progress of this action during execution

func (*ActionJavaTestRun) ShouldEnable

func (a *ActionJavaTestRun) ShouldEnable(s *entity.Session, monorepo entity.MonorepoConfigEntry) bool

ShouldEnable returns whether the action should be enabled for the given session.

type ActionJavaTestRunCoverage

type ActionJavaTestRunCoverage struct{}

ActionJavaTestRunCoverage is an action that runs Java test coverage for a given target.

func (*ActionJavaTestRunCoverage) CommandName

func (a *ActionJavaTestRunCoverage) CommandName() string

CommandName returns the name of the command that this action will execute.

func (*ActionJavaTestRunCoverage) Execute

Execute runs the action, using the given arguments. ExecuteParams will provide values from the controller.

func (*ActionJavaTestRunCoverage) IsRelevantDocument

func (a *ActionJavaTestRunCoverage) IsRelevantDocument(s *entity.Session, document protocol.TextDocumentItem) bool

IsRelevantDocument returns true if the action is relevant for the given document.

func (*ActionJavaTestRunCoverage) ProcessDocument

func (a *ActionJavaTestRunCoverage) ProcessDocument(ctx context.Context, document protocol.TextDocumentItem) ([]interface{}, error)

ProcessDocument processes the given document, returning a list of CodeActions.

func (*ActionJavaTestRunCoverage) ProvideWorkDoneProgressParams

func (a *ActionJavaTestRunCoverage) ProvideWorkDoneProgressParams(ctx context.Context, params *action.ExecuteParams, args json.RawMessage) (*action.ProgressInfoParams, error)

ProvideWorkDoneProgressParams returns info to display on progress of this action during execution

func (*ActionJavaTestRunCoverage) ShouldEnable

ShouldEnable returns true if the action should be enabled for the given session.

Jump to

Keyboard shortcuts

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