richard1122 / vscode-youcompleteme

YouCompleteMe for VSCode
https://marketplace.visualstudio.com/items?itemName=RichardHe.you-complete-me
MIT License
53 stars 8 forks source link

Custom [go to definition] Shortcuts #60

Closed vernon2gh closed 4 years ago

vernon2gh commented 4 years ago

hello: I have vscode-youcompleteme and vscode-gnu-global Plug,two plug-in [go to definition] is the same, It looks a bit confusing, So I want to customize the shortcuts vscode-youcompleteme [go to definition], What should I do?

thanks

richard1122 commented 4 years ago

I think goto is a language server api. Not a command shortcut.

vernon2gh commented 4 years ago

[go to definition] how to separate out into another name or command?

richard1122 commented 4 years ago

Here's the code to find the definition, it only response with a location, and vscode will jump to. https://github.com/richard1122/vscode-youcompleteme/blob/master/server/src/server.ts#L118

I'm not sure how to make extensions to jump to the file and location, but if you are willing to take some investigation, PR's are welcome.