Skip to content

Enable Go-to-Definition for Linux kernel source by renaming cache - #14

Merged
GhostDog788 merged 2 commits into
mainfrom
dev
Jun 8, 2026
Merged

GhostDog788 merged 2 commits into
mainfrom
dev

Conversation

@GhostDog788

Copy link
Copy Markdown
Owner

No description provided.

GhostDog788 and others added 2 commits May 28, 2026 17:45
VS Code's C/C++ extension does not index dot-prefixed folders, so the
synced kernel headers and source under .kernel-cache/ were invisible to
IntelliSense and Go-to-Definition (F12) on a kernel symbol resolved
nowhere.

- Rename .kernel-cache/ -> kernel-cache/ (non-hidden) and update every
  reference: .gitignore, c_cpp_properties.json, settings.json, Makefile,
  scripts/00,02,03,04, README.md, CI workflow comment.
- settings.json: drop the empty "C_Cpp.default.configurationProvider"
  (an empty provider suppresses c_cpp_properties.json) and remove the
  cache from files.exclude (excluding it also drops it from indexing).
- c_cpp_properties.json: add kernel-cache/current/source to browse.path
  and set limitSymbolsToIncludedHeaders=false so Go-to-Definition can
  reach function bodies defined in kernel .c files, not just the header
  declarations.

Verified: .vscode JSON valid, scripts pass bash -n, module builds
against the renamed cache, and the DWARF prefix-map invariant still
holds (no build/intermediate/ paths leak into the .ko).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@GhostDog788
GhostDog788 merged commit cfb0b2d into main Jun 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant