Skip to content
Snippets Groups Projects

search: Update webapp to reflect new `has` syntax for predicates

Merged Warren Gifford requested to merge tl/has-aliases-syntax-highlighting into main

Created by: tbliu98

Stacked on #40763 Part of https://github.com/sourcegraph/sourcegraph/issues/39767

Query completion suggests predicates using the has syntax instead of contains, e.g. repo:has.file. Add hovers and decoration for repo:has and file:has predicates. Update reference panel to use has predicates as examples.

Test plan

Added some unit tests for hovers. Manually checked hovers, decoration, completion, reference panel. image

Merge request reports

Approval is optional

Merged by avatar (Jun 8, 2025 6:42am UTC)

Merge details

  • Changes merged into main with ae35cdd2.
  • Deleted the source branch.

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