Skip to content
Snippets Groups Projects

Symbols: add `fileLocal` field

Merged Warren Gifford requested to merge file-local into master

Created by: chrismwendt

Previously, the symbols service was suppressing file-local definitions from ctags (e.g. private variables), which was preventing jump-to-definition from working on some tokens.

This indexes file-local definitions. Here's an example:

image

This also captures the boolean fileLocal from ctags and exposes it through the GraphQL API. Without this, code intel would not be able to filter out private variables defined in other files. basic-code-intel uses fileLocal and filtering was added in https://github.com/sourcegraph/sourcegraph-basic-code-intel/pull/63

Merge request reports

Merged by avatar (Jul 12, 2025 5:25pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading