Skip to content

Commit

Permalink
Add completion of package keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Jan 8, 2025
1 parent 4628fb2 commit f435284
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,9 @@ public void run() {
suggestDefaultCompletions = false;
}
}
if (context instanceof CompilationUnit && CharOperation.prefixEquals(completionContext.getToken(), Keywords.PACKAGE)) {
this.requestor.accept(createKeywordProposal(Keywords.PACKAGE, completionContext.getTokenStart(), completionContext.getTokenEnd()));
}

// check for accessible bindings to potentially turn into completions.
// currently, this is always run, even when not using the default completion,
Expand Down

0 comments on commit f435284

Please sign in to comment.