mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
Go to Declaration on a dependency, plugin or <parent> in a POM opens the artifact's own POM (a workspace module with matching coordinates first, then the local repository), and unversioned dependencies and plugins get a gutter icon that opens the management entry supplying their version, through active profiles (including JDK-activated ones), parent POMs, imported BOMs and plugin management. Maven element values are underlined whole, and contributed definition/hover providers that decline a position let the next one answer. Review fix: a BOM import without a version no longer ends the management search. Co-authored-by: kradme <17811095+kradme@users.noreply.github.com>
12 lines
485 B
TypeScript
12 lines
485 B
TypeScript
/** Gradle scripts and static inputs whose edits can change the build model or libraries. */
|
|
export function isGradleBuildInput(path: string): boolean {
|
|
return /(?:^|[\\/])(?:[^\\/]+\.gradle(?:\.kts)?|gradle\.properties|gradle-wrapper\.properties|[^\\/]+\.versions\.toml)$/.test(
|
|
path,
|
|
);
|
|
}
|
|
|
|
/** A project POM or a POM installed in the local Maven repository. */
|
|
export function isMavenPom(path: string): boolean {
|
|
return /(^|[\\/])(?:pom\.xml|[^\\/]+\.pom)$/i.test(path);
|
|
}
|