contextive icon indicating copy to clipboard operation
contextive copied to clipboard

IntelliJ doesn't show completion list in certain positions

Open chrissimon-au opened this issue 1 year ago • 0 comments

Describe the bug Due to IntelliJ's rules for determining a completionlist prefix, sometimes it doesn't show the Contextive complteion list as it determines the prefix doesn't match. e.g. in a yml file like:

key: value s

If the cursor is after the s, then Contextive would return a list and expect it to be filtered by the prefix s but intellij would attempt to filter with the value value s as it considers everything after the : to be prefix.

Expected behavior It should show the completion list even at the position s

Additional context

From discussion with JetBrains support, they recommend using the textEdit field, not the insertText field in the completion item, as this is more explicit and would avoid client-side interpretation.

chrissimon-au avatar Mar 11 '24 10:03 chrissimon-au