fix(JsLangDoc): // JS
This commit is contained in:
@@ -33,15 +33,11 @@ public class JsLangDoc extends BaseLangDoc {
|
|||||||
public @Nullable <T extends SettingsInfo> String resolveDocRaw(@NotNull T info, @NotNull PsiElement resolve) {
|
public @Nullable <T extends SettingsInfo> String resolveDocRaw(@NotNull T info, @NotNull PsiElement resolve) {
|
||||||
@Nullable PsiComment psiComment = JSDocumentationUtils.findOwnDocCommentForImplicitElement(resolve);
|
@Nullable PsiComment psiComment = JSDocumentationUtils.findOwnDocCommentForImplicitElement(resolve);
|
||||||
if (psiComment == null) {
|
if (psiComment == null) {
|
||||||
|
if (info.appSettings.showLineEndCommentJsBase) {
|
||||||
|
return super.resolveDocRaw(info, resolve);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String text = psiComment.getText();
|
return psiComment.getText();
|
||||||
if (text != null) {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
if (info.appSettings.showLineEndCommentJsBase) {
|
|
||||||
return super.resolveDocRaw(info, resolve);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user