Skip to content

Commit

Permalink
fix(rust): update CargoCommandConfigurationType to support 241 version
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 4, 2024
1 parent 95022b3 commit ed892d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -34,7 +34,7 @@ class RustTestService : AutoTestService() {
val cmd = CargoCommandLine.forPackage(pkg, "test", listOf("--color", "never")).copy(emulateTerminal = false)

val configurationSetting = RunManager.getInstance(project)
.createConfiguration("tests", CargoCommandConfigurationType.getInstance().factory)
.createConfiguration("tests", CargoCommandConfigurationType().factory)
val configuration = configurationSetting.configuration as CargoCommandConfiguration
cmd.mergeWithDefault(configuration)
configuration.setFromCmd(cmd)
Expand Down
Expand Up @@ -69,7 +69,7 @@ class RenameLookupManagerListener(val project: Project) : LookupManagerListener
logger.info("result: $result")
extractSuggestionsFromString(result).filter { it.isNotBlank() }.map {
runReadAction {
if (!lookupImpl.isLookupDisposed && runJob.isActive) {
if (!lookupImpl.isLookupDisposed && runJob.isActive && it.isNotBlank()) {
lookupImpl.addItem(CustomRenameLookupElement(it), PrefixMatcher.ALWAYS_TRUE)
}
}
Expand Down

0 comments on commit ed892d9

Please sign in to comment.