IDEA-381055 javadoc: disable typed handler behavior

It is expected to be superseded by the template support for markdown javadoc

GitOrigin-RevId: da6fea720dd2dbc912ecd38bc49654d5bb0649e4
This commit is contained in:
Mathias
2025-12-02 15:43:54 +00:00
committed by intellij-monorepo-bot
parent b5a9791e93
commit 3ee661f414
4 changed files with 0 additions and 23 deletions
@@ -3,7 +3,6 @@ package com.intellij.codeInsight.editorActions;
import com.intellij.codeInsight.CodeInsightSettings;
import com.intellij.lang.ASTNode;
import com.intellij.openapi.editor.CaretModel;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
@@ -56,20 +55,6 @@ public final class JavadocTypedHandler extends TypedHandlerDelegate {
}
return;
}
if (c == '/') {
// Insert a single space when adding the initial leading slashes
final CaretModel caretModel = editor.getCaretModel();
final int caretOffset = caretModel.getOffset();
PsiElement currElement = file.findElementAt(caretOffset - 1);
if (currElement instanceof PsiWhiteSpace) {
PsiElement prev = currElement.getPrevSibling();
if (prev != null && prev.getNode().getElementType() == JavaTokenType.END_OF_LINE_COMMENT && prev.getText().equals("//")) {
editor.getDocument().insertString(prev.getTextRange().getEndOffset() + 1, " ");
caretModel.moveToOffset(caretOffset + 1);
}
}
}
}
/**