How to disable YamlStructuralKeysCompletionContributor in a custom YAML-based plugin?

Answered

Hello JetBrains team,

I'm developing a custom IntelliJ IDEA plugin that depends on the built-in YAML plugin and utilizes yaml.meta.model for structure definition. My plugin has its own CompletionContributor implementation that provides domain-specific autocompletion suggestions.

However, I noticed that YamlStructuralKeysCompletionContributor  interferes with my completion provider. It suggests incorrect values that are not applicable to my plugin. I don't use JSON schemas.

Questions:
1. Is there any way to disable YamlStructuralKeysCompletionContributor in my plugin?
2. If not, could JetBrains introduce a mechanism to disable or customize this contributor?

I would appreciate any recommendations on how to solve this issue. Thanks in advance for your help!

Best regards,
Yury Brigadirenko
Concord plugin

1
1 comment

See CompletionContributor javadoc entry “Q: I know more about my environment than the IDE does…”

but this is somewhat risky.

0

Please sign in to leave a comment.