codelens-golang-navigate

A Visual Studio Code extension that adds CodeLens actions and trusted hover links for fast navigation in Golang code.
Features
CodeLens navigation
For Go symbols, the extension shows CodeLens actions:
🔍 Definition | 🏷️ Type definition | ⚙️ Implementations | 🏗️ Type hierarchy | 📞 Callers | 🔗 References
CodeLens is:
- Automatically refreshed while typing (debounced)
- Powered by
gopls via VS Code's symbol provider
Hover navigation
When hovering a Go symbol, you get clickable links:
🔍 Definition | 🏷️ Type definition | ⚙️ Implementations | 🏗️ Type hierarchy | 📞 Callers | 🔗 References
These links are trusted and execute the corresponding editor navigation commands.
- Document symbols are cached per file version
- CodeLens refresh is debounced (configurable)
- Refresh happens only for the active Go editor
Prerequisites
Configuration
All settings are under the codelensGolangNavigate namespace.
| Option |
Description |
Default |
codelensGolangNavigate.enableCodeLensActions |
Enable/disable CodeLens actions |
true |
codelensGolangNavigate.enableHoverLinks |
Enable/disable hover links |
true |
codelensGolangNavigate.refreshOnTyping |
Refresh CodeLens when typing in the active Go file |
true |
codelensGolangNavigate.refreshDebounceMs |
Debounce delay (ms) for refresh-on-typing |
120 |
codelensGolangNavigate.logLevel |
Minimum log level (error, warn, info, debug) |
info |
Example settings.json
{
"codelensGolangNavigate.enableCodeLensActions": true,
"codelensGolangNavigate.enableHoverLinks": true,
"codelensGolangNavigate.refreshOnTyping": true,
"codelensGolangNavigate.refreshDebounceMs": 100,
"codelensGolangNavigate.logLevel": "info"
}