3 ms·
Can jump to definition jump to a definition in an open file instead of opening a duplicate file? Is this handled within the extension or vscode itself? Thanks
by bigdubs 11y ago
Can jump to definition jump to a definition in an open file instead of opening a duplicate file? Is this handled within the extension or vscode itself?
Thanks for the hard work btw, vscode+go has made my team much more productive.
- lukehoban 11y agoGo to Definition will navigate to the definition in an existing open document or open the document if needed. This works across packages in your GOPATH, and also for core Go APIs in GOROOT. This is all handled in VS Code itself through it's (relatively high-level) extension API[0]. [0] https://code.visualstudio.com/docs/extensionAPI/vscode-api#DefinitionProvider https://code.visualstudio.com/docs/extensionAPI/vscode-api#D...