coc-omnisharp icon indicating copy to clipboard operation
coc-omnisharp copied to clipboard

Cannot jump to Microsoft packages by using coc-definition

Open lubyrex opened this issue 5 years ago • 3 comments

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: image Doing a hover on the UseStartup method gives a definition in a floating window: image However using coc-definition returns "Definition not found" Whereas in VSCode, it would jump to the Metadata file: image Is there a way to set up coc-omnisharp to have it exhibit the behavior in VScode?

lubyrex avatar Apr 17 '20 07:04 lubyrex

Same issue here. Basically the last feature i need to be able to use this in production, since i can't view internal packages.

b93rn avatar May 17 '20 11:05 b93rn

so, what is the solution?

howin98 avatar Jan 05 '21 03:01 howin98

@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>

lubyrex avatar Jan 08 '21 10:01 lubyrex