mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
[spring-boot] yaml: fix creating key in a document with top level compound value
GitOrigin-RevId: 89f37c8514e21860b85ada91d636e1e4e8a5cccd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
38b9c46055
commit
e4cd6efb49
@@ -39,7 +39,7 @@ public abstract class YamlKeyCompletionInsertHandler<T extends LookupElement> im
|
||||
PsiFile psiFile = context.getFile();
|
||||
YamlOffsetContext offsetContext = new YamlOffsetContext(psiFile, startOffset);
|
||||
@SuppressWarnings("DataFlowIssue")
|
||||
YAMLValue oldValue = (offsetContext.holdingDocument.getTopLevelValue() instanceof YAMLMapping) ?
|
||||
YAMLValue oldValue = (offsetContext.holdingDocument.getTopLevelValue() instanceof YAMLCompoundValue) ?
|
||||
deleteLookupTextAndRetrieveOldValue(context, offsetContext.currentElement) :
|
||||
null; // Inheritors must handle lookup text removal since otherwise holdingDocument may become invalid.
|
||||
if (oldValue instanceof YAMLSequence) {
|
||||
|
||||
Reference in New Issue
Block a user