Valid syntax

I have a CompletionProvider and made it add some completions, but how do I add these completions ad valid syntax?

Right now the default inspection sees my completions and has a fix for it, but I want it to know there is nothing wrong with it and also add go to support.

 

What is the provider called for doing this?

It is not a custom language I am implementing, it is just a framework.

 

0
正式评论

Sorry, I don't understand what you mean. Perhaps some examples could help.

Sorry for my bad explanation. What I am trying to figure out is how I can mark some syntax as valid.

So I have created an completions which gives me this functionality (added the password field).

But the problem is afterwards when I select it, Intellij shows warnings about it, even though this is valid for the framework.

So my question is, how do I mark this is valid and nothing is wrong with it, and also support for going to the element?

0

There's no way at the moment to let IDEA/PhpStorm know that a method/field actually exists, but we're working on it. Please vote on the issue https://youtrack.jetbrains.com/v2/issue/WI-32969 to get notified about the progress.

1

请先登录再写评论。