Skip to content

Commit

Permalink
No completion in strings, text blocks, comments, or Javadoc
Browse files Browse the repository at this point in the history
- Javadoc will need to be revisited, but for now I turned off the
  default completion

Signed-off-by: David Thompson <davthomp@redhat.com>
  • Loading branch information
datho7561 authored and mickaelistria committed Nov 12, 2024
1 parent 4284387 commit f45e071
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ public void run() {

checkCancelled();

if (context instanceof StringLiteral || context instanceof TextBlock || context instanceof Comment || context instanceof Javadoc) {
return;
}
if (context instanceof FieldAccess fieldAccess) {
statementLikeKeywords();

Expand Down Expand Up @@ -592,6 +595,9 @@ public void run() {
}
suggestDefaultCompletions = false;
}
if (context instanceof Javadoc) {
suggestDefaultCompletions = false;
}

// 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 f45e071

Please sign in to comment.