File tree 1 file changed +2
-3
lines changed
src/main/kotlin/com/redhat/devtools/intellij/kubernetes/editor/util
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import com.intellij.psi.PsiDocumentManager
25
25
import com.intellij.psi.PsiElement
26
26
import com.intellij.psi.PsiFile
27
27
import com.intellij.psi.PsiManager
28
- import com.intellij.refactoring.suggested.startOffset
29
28
import com.redhat.devtools.intellij.common.validation.KubernetesResourceInfo
30
29
import com.redhat.devtools.intellij.kubernetes.editor.ResourceEditor
31
30
import org.jetbrains.yaml.YAMLElementGenerator
@@ -321,8 +320,8 @@ fun getValue(element: PsiElement): String? {
321
320
*/
322
321
fun getStartOffset (element : PsiElement ): Int? {
323
322
return when (element) {
324
- is YAMLKeyValue -> element.value?.startOffset
325
- is JsonProperty -> element.value?.startOffset
323
+ is YAMLKeyValue -> element.value?.textRange?. startOffset
324
+ is JsonProperty -> element.value?.textRange?. startOffset
326
325
else -> null
327
326
}
328
327
}
You can’t perform that action at this time.
0 commit comments