We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6e0195 commit 3c8d0e6Copy full SHA for 3c8d0e6
1 file changed
packages/cli/src/languagePlugins/java/packageResolver/index.ts
@@ -15,7 +15,8 @@ export class JavaPackageResolver {
15
"";
16
const imports = captures.filter((c) => c.name === "import").map((c) =>
17
// Unholy string manipulation because wildcard imports break tree-sitter queries.
18
- c.node.text.split(" ").findLast((s) => s.length > 1)!.replace(";", "")
+ c.node.text.split(" ").findLast((s) => s.length > 0 && s !== ";")!
19
+ .replace(";", "")
20
);
21
const declaration = captures.find((c) =>
22
!["package", "import"].includes(c.name)
0 commit comments