Browse Source

[Do not merge] Fix API to be compatible with IJ 222

compose-tooling
Ilya Ryzhenkov 2 years ago
parent
commit
e95111155d
  1. 8
      idea-plugin/gradle.properties
  2. 2
      idea-plugin/src/main/kotlin/com/android/tools/compose/code/completion/ComposeModifierCompletionContributor.kt

8
idea-plugin/gradle.properties

@ -5,11 +5,11 @@ kotlin.stdlib.default.dependency=false
deploy.version=0.1-SNAPSHOT deploy.version=0.1-SNAPSHOT
plugin.channels=snapshots plugin.channels=snapshots
plugin.since.build=221 plugin.since.build=222
plugin.until.build=223.* plugin.until.build=222.*
## See https://jb.gg/intellij-platform-builds-list for available build versions. ## See https://jb.gg/intellij-platform-builds-list for available build versions.
plugin.verifier.ide.versions=2022.1 plugin.verifier.ide.versions=2022.2
platform.type=IC platform.type=IC
platform.version=2022.1 platform.version=2022.2
platform.download.sources=true platform.download.sources=true

2
idea-plugin/src/main/kotlin/com/android/tools/compose/code/completion/ComposeModifierCompletionContributor.kt

@ -168,7 +168,7 @@ class ComposeModifierCompletionContributor : CompletionContributor() {
val basicLookupElementFactory = BasicLookupElementFactory(nameExpression.project, insertHandler) val basicLookupElementFactory = BasicLookupElementFactory(nameExpression.project, insertHandler)
return LookupElementFactory( return LookupElementFactory(
basicLookupElementFactory, receiverTypes, basicLookupElementFactory, parameters.editor, receiverTypes,
callTypeAndReceiver.callType, inDescriptor, CollectRequiredTypesContextVariablesProvider() callTypeAndReceiver.callType, inDescriptor, CollectRequiredTypesContextVariablesProvider()
) )
} }

Loading…
Cancel
Save