Skip to content

Commit

Permalink
Hide "Add to dictionary" when in server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed May 6, 2020
1 parent 06e2d11 commit c453430
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public CompletableFuture<List<Either<Command, CodeAction>>> codeAction(
}
}

if (!addWordToDictionaryMatches.isEmpty()) {
if (!addWordToDictionaryMatches.isEmpty() && settings.getHttpUri().isEmpty()) {
AnnotatedText inverseAnnotatedText = invertAnnotatedText(validateResult.getValue());
List<String> unknownWords = new ArrayList<>();
JsonArray unknownWordsJson = new JsonArray();
Expand Down

0 comments on commit c453430

Please sign in to comment.