coc-omnisharp
coc-omnisharp copied to clipboard
Cannot jump to Microsoft packages by using coc-definition
I'm following the asp dotnet tutorial here:
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?
And it creates this simple file: Program.cs, which looks like this right now:
Doing a hover on the UseStartup method gives a definition in a floating window:
However using coc-definition returns "Definition not found"
Whereas in VSCode, it would jump to the Metadata file:
Is there a way to set up coc-omnisharp to have it exhibit the behavior in VScode?
Same issue here. Basically the last feature i need to be able to use this in production, since i can't view internal packages.
so, what is the solution?
@howin98 you could use https://github.com/OmniSharp/omnisharp-vim, and map your go to definition hotkey to :OmniSharpGotoDefinition<CR> while using coc-omnisharp for your other hotkeys.
My config looks like this:
autocmd FileType cs nnoremap <buffer> gd :OmniSharpGotoDefinition<CR>