Support method name lookup generation (#280)

This commit is contained in:
Carl-Robert 2023-11-19 22:56:12 +02:00 committed by GitHub
parent 3d95269836
commit 845c7b4cee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 162 additions and 9 deletions

View file

@ -22,6 +22,7 @@ public class ConfigurationState implements PersistentStateComponent<Configuratio
private double temperature = 0.2;
private boolean createNewChatOnEachAction;
private boolean ignoreGitCommitTokenLimit;
private boolean methodNameGenerationEnabled = true;
private Map<String, String> tableData = EditorActionsUtil.DEFAULT_ACTIONS;
public static ConfigurationState getInstance() {
@ -86,4 +87,12 @@ public class ConfigurationState implements PersistentStateComponent<Configuratio
public void setIgnoreGitCommitTokenLimit(boolean ignoreGitCommitTokenLimit) {
this.ignoreGitCommitTokenLimit = ignoreGitCommitTokenLimit;
}
public boolean isMethodNameGenerationEnabled() {
return methodNameGenerationEnabled;
}
public void setMethodNameGenerationEnabled(boolean methodNameGenerationEnabled) {
this.methodNameGenerationEnabled = methodNameGenerationEnabled;
}
}