@@ -232,8 +232,8 @@ private static Map<Position, List<ICodeMining>> groupByLines(List<? extends ICod
232232 }
233233
234234 private static enum CodeMiningMode {
235- InLine (LineContentCodeMining .class , CodeMiningLineContentAnnotation .class ),
236- HeaderLine (LineHeaderCodeMining .class , CodeMiningLineHeaderAnnotation .class ),
235+ InLine (LineContentCodeMining .class , CodeMiningLineContentAnnotation .class ),
236+ HeaderLine (LineHeaderCodeMining .class , CodeMiningLineHeaderAnnotation .class ),
237237 FooterLine (DocumentFooterCodeMining .class , CodeMiningDocumentFooterAnnotation .class );
238238
239239 public final Class <? extends ICodeMining > codeMiningType ;
@@ -258,6 +258,8 @@ public static CodeMiningMode createFor(List<ICodeMining> minings) {
258258 mode = CodeMiningMode .HeaderLine ;
259259 } else if (CodeMiningMode .FooterLine .codeMiningType .isInstance (first )) {
260260 mode = CodeMiningMode .FooterLine ;
261+ } else {
262+ mode = CodeMiningMode .InLine ;
261263 }
262264 }
263265 return mode ;
@@ -311,7 +313,7 @@ private void renderCodeMinings(Map<Position, List<ICodeMining>> groups, ISourceV
311313 mouseMove = first .getMouseMove ();
312314 }
313315
314- ann = switch (mode ) {
316+ ann = switch (mode ) {
315317 case InLine -> new CodeMiningLineContentAnnotation (pos , viewer , afterPosition , mouseHover , mouseOut , mouseMove );
316318 case HeaderLine -> new CodeMiningLineHeaderAnnotation (pos , viewer , mouseHover , mouseOut , mouseMove );
317319 case FooterLine -> new CodeMiningDocumentFooterAnnotation (pos , viewer , mouseHover , mouseOut , mouseMove );
0 commit comments