Result from CocInfo
No errors
Describe the bug
When executing a command with coc and coc-java, using the configuration to put the inserted text after or before the cursor, the contents are always inserted either at the top of the class or the bottom, but never after or before the cursor position.
Reproduce the bug
- Install coc-java
- Configure
"java.codeGeneration.insertionLocation": "afterCurosr"
- Create class with a few member methods
- Put cursor in between members or somehwere in the middle of the class
- Call
vim.fn.CocActionAsync("codeAction", "", { "", "quickfix", "refactor", "source" })
- Generate getters and setters
- Getters and setters are put at the very bottom after the last methods/members
Related:
eclipse-jdtls/eclipse.jdt.ls#1713
redhat-developer/vscode-java#1859