fix: High CPU usage in new files check (#446) (#474)

* fix: High CPU usage in new files check (#446)

* Resolve absolute path
This commit is contained in:
Rene Leonhardt 2024-04-18 15:36:49 +02:00 committed by Carl-Robert Linnupuu
parent e4c06fb851
commit d94865be8a
3 changed files with 38 additions and 24 deletions

View file

@ -132,13 +132,13 @@ public class ConfigurationState {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof ConfigurationState that)) {
return false;
}
ConfigurationState that = (ConfigurationState) o;
return maxTokens == that.maxTokens
&& Double.compare(that.temperature, temperature) == 0
&& Double.compare(temperature, that.temperature) == 0
&& checkForPluginUpdates == that.checkForPluginUpdates
&& checkForNewScreenshots == that.checkForNewScreenshots
&& createNewChatOnEachAction == that.createNewChatOnEachAction
&& ignoreGitCommitTokenLimit == that.ignoreGitCommitTokenLimit
&& methodNameGenerationEnabled == that.methodNameGenerationEnabled
@ -153,8 +153,9 @@ public class ConfigurationState {
@Override
public int hashCode() {
return Objects.hash(systemPrompt, commitMessagePrompt, maxTokens, temperature,
checkForPluginUpdates, createNewChatOnEachAction, ignoreGitCommitTokenLimit,
methodNameGenerationEnabled, captureCompileErrors, autoFormattingEnabled,
checkForPluginUpdates, checkForNewScreenshots, createNewChatOnEachAction,
ignoreGitCommitTokenLimit, methodNameGenerationEnabled, captureCompileErrors,
autoFormattingEnabled,
codeCompletionsEnabled, tableData);
}
}