Skip to content

Commit

Permalink
fix: removed internal API to get compat with 2024.3
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Oct 22, 2024
1 parent d5972d2 commit adc3742
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import com.intellij.psi.PsiDocumentManager
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.PsiManager
import com.intellij.refactoring.suggested.startOffset
import com.redhat.devtools.intellij.common.validation.KubernetesResourceInfo
import com.redhat.devtools.intellij.kubernetes.editor.ResourceEditor
import org.jetbrains.yaml.YAMLElementGenerator
Expand Down Expand Up @@ -321,8 +320,8 @@ fun getValue(element: PsiElement): String? {
*/
fun getStartOffset(element: PsiElement): Int? {
return when (element) {
is YAMLKeyValue -> element.value?.startOffset
is JsonProperty -> element.value?.startOffset
is YAMLKeyValue -> element.value?.textRange?.startOffset
is JsonProperty -> element.value?.textRange?.startOffset
else -> null
}
}
Expand Down

0 comments on commit adc3742

Please sign in to comment.