RUBY-33021 Specify that "space in suppression comment" setting is not available for JVM languages

(cherry picked from commit 0108830cb741860d647863626b28f2baaabac53d)

IJ-CR-139181

GitOrigin-RevId: adbe190cd155a3c343a10fd2f0fe904d86b3417e
This commit is contained in:
Egor Kukoverov
2024-07-16 15:40:38 +03:00
committed by intellij-monorepo-bot
parent 37e5749167
commit ceb99fa5c5
3 changed files with 24 additions and 2 deletions

View File

@@ -322,7 +322,13 @@ public final class JavaLanguageCodeStyleSettingsProvider extends LanguageCodeSty
"BLANK_LINES_AROUND_FIELD");
}
else if (settingsType == SettingsType.COMMENTER_SETTINGS) {
consumer.showAllStandardOptions();
consumer.showStandardOptions(
"LINE_COMMENT_ADD_SPACE",
"LINE_COMMENT_ADD_SPACE_ON_REFORMAT",
"LINE_COMMENT_AT_FIRST_COLUMN",
"BLOCK_COMMENT_AT_FIRST_COLUMN",
"BLOCK_COMMENT_ADD_SPACE"
);
}
else if (settingsType == SettingsType.LANGUAGE_SPECIFIC) {
consumer.showCustomOption(JavaCodeStyleSettings.class, "JD_ALIGN_PARAM_COMMENTS",

View File

@@ -339,6 +339,16 @@ public final class GroovyLanguageCodeStyleSettingsProvider extends LanguageCodeS
);
return;
}
if (settingsType == COMMENTER_SETTINGS) {
consumer.showStandardOptions(
"LINE_COMMENT_ADD_SPACE",
"LINE_COMMENT_ADD_SPACE_ON_REFORMAT",
"LINE_COMMENT_AT_FIRST_COLUMN",
"BLOCK_COMMENT_AT_FIRST_COLUMN",
"BLOCK_COMMENT_ADD_SPACE"
);
return;
}
consumer.showAllStandardOptions();
}

View File

@@ -302,7 +302,13 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide
)
}
SettingsType.COMMENTER_SETTINGS -> {
consumer.showAllStandardOptions()
consumer.showStandardOptions(
"LINE_COMMENT_ADD_SPACE",
"LINE_COMMENT_ADD_SPACE_ON_REFORMAT",
"LINE_COMMENT_AT_FIRST_COLUMN",
"BLOCK_COMMENT_AT_FIRST_COLUMN",
"BLOCK_COMMENT_ADD_SPACE"
)
}
else -> consumer.showStandardOptions()
}