Keyword code completion for a space separated XML attribute
Hi,
I'm adding code completion support for an XML attribute that supports a space separated list of HTTP method names (`GET`, `POST`, etc.). I have this working for single item values, but when typing a second method name after a space (e.g. from "GET P"), the completion list is not working.
How do I get the method name LookupElement objects to be displayed in that case?
Kind regards,
Reece
请先登录再写评论。
Please post your code with some usage samples
The code I'm using is located at https://github.com/rhdunn/xquery-intellij-plugin/blob/master/src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/rewriter/completion/RewriterCompletionContributor.kt. That is:
The code-completion/http-method.lst file is a simple list file that looks like:
This is used to provide completion for MarkLogic rewriter XML files. The situation I describe above is for the `match-method` elements. For example: