Skip to content

Commit b53510b

Browse files
committed
feat(lookup-manager): filter suggestions and update plugin version
- Update the filter condition for suggestions to include spaces and non-blank characters. - Bump the plugin version to 1.8.4-SNAPSHOT.
1 parent e15006e commit b53510b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pluginGroup = com.phodal.autodev
77
pluginName = AutoDev
88
pluginRepositoryUrl = https://github.com/unit-mesh/auto-dev
99
# SemVer format -> https://semver.org
10-
pluginVersion = 1.8.3-RC
10+
pluginVersion = 1.8.4-SNAPSHOT
1111

1212
# Supported IDEs: idea, pycharm
1313
baseIDE=idea

src/main/kotlin/cc/unitmesh/devti/practise/RenameLookupManagerListener.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class RenameLookupManagerListener(val project: Project) : LookupManagerListener
6666
val result = sb.toString()
6767
logger.info("result: $result")
6868
extractSuggestionsFromString(result).filter {
69-
// since AI could not do well in math, like 5 result, we should filter it
70-
it.isNotBlank() || it.contains(" ")
69+
// since AI could not do well in math, like 5 results, we should filter it
70+
it.isNotBlank() && !it.contains(" ")
7171
}.map {
7272
runReadAction {
7373
if (!lookupImpl.isLookupDisposed && runJob.isActive && it.isNotBlank()) {

0 commit comments

Comments
 (0)