Skip to content

Commit 2a4f51e

Browse files
committed
Implement RestXqEndpointsProvider.getDocumentationElement directly.
1 parent 0c9fcd2 commit 2a4f51e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugin-exquery/main/uk/co/reecedunn/intellij/plugin/exquery/restxq/endpoints/RestXqEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import uk.co.reecedunn.intellij.plugin.xpm.optree.function.XpmFunctionDeclaratio
1414
import javax.swing.Icon
1515

1616
@Suppress("RedundantSuppression", "UnstableApiUsage")
17-
class RestXqEndpoint(private val endpoint: XpmFunctionDeclaration) :
17+
class RestXqEndpoint(val endpoint: XpmFunctionDeclaration) :
1818
EndpointMethodPresentation,
1919
ItemPresentation,
2020
UiDataProvider,

src/plugin-exquery/main/uk/co/reecedunn/intellij/plugin/exquery/restxq/endpoints/RestXqEndpointsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class RestXqEndpointsProvider :
4343
}
4444

4545
override fun getDocumentationElement(group: RestXqEndpointsGroup, endpoint: RestXqEndpoint): PsiElement? {
46-
return getEndpointData(group, endpoint, CommonDataKeys.PSI_ELEMENT.name) as? PsiElement
46+
return endpoint.endpoint as? PsiElement
4747
}
4848

4949
private fun getEndpointGroups(project: Project): List<RestXqEndpointsGroup> {

0 commit comments

Comments
 (0)