javautils

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJavaTarget

func GetJavaTarget(fs fs.UlspFS, workspaceRoot string, docURI protocol.DocumentURI) (string, error)

GetJavaTarget returns the bazel target for all targets in a path for the given document URI by finding the nearest parent BUILD.bazel file and appending the `...` suffix to the path. Example: for a document URI of /home/user/fievel/tooling/intellij/uber-intellij-plugin-core/src/main/java/com/uber/intellij/bazel/BazelSyncListener.java and a workspace root of /home/user/fievel, the returned target would be tooling/intellij/uber-intellij-plugin-core/... assuming that the BUILD.bazel file is located at /home/user/fievel/tooling/intellij/uber-intellij-plugin-core/BUILD.bazel

func NormalizeIDEClient

func NormalizeIDEClient(ideClient string) string

NormalizeIDEClient normalizes the IDE client name to a consistent format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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