mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[param hints] remove obsolete options
This commit is contained in:
-9
@@ -18,7 +18,6 @@ package com.intellij.codeInsight.daemon.inlays
|
||||
import com.intellij.codeInsight.hints.JavaInlayHintsProvider
|
||||
import com.intellij.codeInsight.hints.settings.ParameterNameHintsSettings
|
||||
import com.intellij.lang.java.JavaLanguage
|
||||
import com.intellij.openapi.editor.ex.EditorSettingsExternalizable
|
||||
|
||||
class JavaInlayParameterHintsTest : InlayParameterHintsTest() {
|
||||
|
||||
@@ -235,10 +234,6 @@ public class CharSymbol {
|
||||
}
|
||||
|
||||
fun `test inline literal arguments with crazy settings`() {
|
||||
val settings = EditorSettingsExternalizable.getInstance()
|
||||
settings.minArgsToShow = 1
|
||||
settings.minParamNameLengthToShow = 1
|
||||
|
||||
check("""
|
||||
public class Test {
|
||||
public void main(boolean isActive, boolean requestFocus, int xoo) {
|
||||
@@ -288,10 +283,6 @@ public class Test {
|
||||
}
|
||||
|
||||
fun `test hints for generic arguments`() {
|
||||
val settings = EditorSettingsExternalizable.getInstance()
|
||||
settings.minArgsToShow = 1
|
||||
settings.minParamNameLengthToShow = 1
|
||||
|
||||
check("""
|
||||
|
||||
class QList<E> {
|
||||
|
||||
-2
@@ -78,8 +78,6 @@ class EditorSettingsStatisticsCollector extends UsagesCollector {
|
||||
addIfDiffers(set, es.isSmartHome(), true, "smartHome");
|
||||
addIfDiffers(set, es.isCamelWords(), false, "camelWords");
|
||||
addIfDiffers(set, es.isShowParameterNameHints(), true, "editor.inlay.parameter.hints");
|
||||
addIfDiffers(set, es.getMinArgsToShow(), 2, "editor.inlay.parameter.hints.min.args");
|
||||
addIfDiffers(set, es.getMinParamNameLengthToShow(), 3, "editor.inlay.parameter.hints.min.param.length");
|
||||
|
||||
RichCopySettings rcs = RichCopySettings.getInstance();
|
||||
addIfDiffers(set, rcs.isEnabled(), true, "richCopy");
|
||||
|
||||
-16
@@ -549,22 +549,6 @@ public class EditorSettingsExternalizable implements PersistentStateComponent<Ed
|
||||
myOptions.SHOW_PARAMETER_NAME_HINTS = value;
|
||||
}
|
||||
|
||||
public int getMinParamNameLengthToShow() {
|
||||
return myOptions.MIN_PARAM_NAME_LENGTH_TO_SHOW;
|
||||
}
|
||||
|
||||
public void setMinParamNameLengthToShow(int value) {
|
||||
myOptions.MIN_PARAM_NAME_LENGTH_TO_SHOW = value;
|
||||
}
|
||||
|
||||
public int getMinArgsToShow() {
|
||||
return myOptions.MIN_PARAMS_TO_SHOW;
|
||||
}
|
||||
|
||||
public void setMinArgsToShow(int minParamsToShow) {
|
||||
myOptions.MIN_PARAMS_TO_SHOW = minParamsToShow;
|
||||
}
|
||||
|
||||
public boolean isKeepTrailingSpacesOnCaretLine() {
|
||||
return myOptions.KEEP_TRAILING_SPACE_ON_CARET_LINE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user