josa42 / coc-go

Go language server extension using gopls for coc.nvim.
MIT License
566 stars 30 forks source link

Code lens not working on unit test functions. #202

Closed tubzby closed 1 year ago

tubzby commented 1 year ago

I have setup vimspector, nothing happens after CocActionAsync('codeLensAction'), but go.mod file is working:

image image
tubzby commented 1 year ago

I have enabled it by adding to CocConfig with:

    "go.goplsOptions": {
        "codelenses": {
            "test": true,
        },
        "semanticTokens": true,
        "staticcheck": true
    }

Now "run test" is working, but "debug test" is not working, I have set up delve and vimspector, what might be missing? image

josa42 commented 1 year ago

That's nothing, that can be fixed in coc-go. Must be something with your configuration