Added TODOs
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ class LookupElementFactory(
|
|||||||
|
|
||||||
val argumentText = descriptor.valueParameters.map {
|
val argumentText = descriptor.valueParameters.map {
|
||||||
(if (it.varargElementType != null) "*" else "") + it.name.render()
|
(if (it.varargElementType != null) "*" else "") + it.name.render()
|
||||||
}.joinToString(", ")
|
}.joinToString(", ") //TODO: use code formatting settings
|
||||||
|
|
||||||
val lookupElement = createFunctionCallElementWithArguments(descriptor, argumentText, true)
|
val lookupElement = createFunctionCallElementWithArguments(descriptor, argumentText, true)
|
||||||
lookupElement.assignPriority(ItemPriority.SUPER_METHOD_WITH_ARGUMENTS)
|
lookupElement.assignPriority(ItemPriority.SUPER_METHOD_WITH_ARGUMENTS)
|
||||||
|
|||||||
+2
-2
@@ -27,8 +27,8 @@ import org.jetbrains.kotlin.idea.completion.ArgumentPositionData
|
|||||||
import org.jetbrains.kotlin.idea.completion.ExpectedInfo
|
import org.jetbrains.kotlin.idea.completion.ExpectedInfo
|
||||||
import org.jetbrains.kotlin.idea.completion.SmartCastCalculator
|
import org.jetbrains.kotlin.idea.completion.SmartCastCalculator
|
||||||
import org.jetbrains.kotlin.idea.completion.Tail
|
import org.jetbrains.kotlin.idea.completion.Tail
|
||||||
import org.jetbrains.kotlin.idea.util.getResolutionScope
|
|
||||||
import org.jetbrains.kotlin.idea.resolve.ResolutionFacade
|
import org.jetbrains.kotlin.idea.resolve.ResolutionFacade
|
||||||
|
import org.jetbrains.kotlin.idea.util.getResolutionScope
|
||||||
import org.jetbrains.kotlin.idea.util.getVariableFromImplicitReceivers
|
import org.jetbrains.kotlin.idea.util.getVariableFromImplicitReceivers
|
||||||
import org.jetbrains.kotlin.incremental.components.NoLookupLocation
|
import org.jetbrains.kotlin.incremental.components.NoLookupLocation
|
||||||
import org.jetbrains.kotlin.psi.Call
|
import org.jetbrains.kotlin.psi.Call
|
||||||
@@ -88,7 +88,7 @@ class MultipleArgumentsItemProvider(
|
|||||||
compoundIcon.setIcon(firstIcon, 1, 0, 0)
|
compoundIcon.setIcon(firstIcon, 1, 0, 0)
|
||||||
|
|
||||||
return LookupElementBuilder
|
return LookupElementBuilder
|
||||||
.create(variables.map { it.getName().render() }.joinToString(", "))
|
.create(variables.map { it.getName().render() }.joinToString(", ")) //TODO: use code formatting settings
|
||||||
.withInsertHandler { context, lookupElement ->
|
.withInsertHandler { context, lookupElement ->
|
||||||
if (context.getCompletionChar() == Lookup.REPLACE_SELECT_CHAR) {
|
if (context.getCompletionChar() == Lookup.REPLACE_SELECT_CHAR) {
|
||||||
val offset = context.getOffsetMap().getOffset(SmartCompletion.MULTIPLE_ARGUMENTS_REPLACEMENT_OFFSET)
|
val offset = context.getOffsetMap().getOffset(SmartCompletion.MULTIPLE_ARGUMENTS_REPLACEMENT_OFFSET)
|
||||||
|
|||||||
Reference in New Issue
Block a user