sourcegraph/internal/search/result
Julie Tibshirani f4a07a8b12
fix(search): correctly handle select:symbol.enum (#64170)
To implement `select:symbol.enum` filters, we look at each symbol's
ctags 'kind' and check if it matches the filter value `enum`. We
accidentally didn't include 'enum' in this match logic, so all these
symbols were filtered away.

This PR fixes that, and adds a few improvements:
* Use a shared map between `symbol.LSPKind` and `symbol.SelectKind`, to
avoid drift between these two conversions.
* Audit the ctags mapping from
[sourcegraph/zoekt#674](https://github.com/sourcegraph/zoekt/pull/674)
and add other missing kinds (besides enum)

Closes SPLF-178
2024-07-31 12:07:27 +03:00
..
testdata Search backend: fix parsing formatted diffs (#39378) 2022-07-25 12:58:11 -06:00
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
commit_diff_test.go Migrate to autogold/v2 (needed by Bazel) (#47891) 2023-02-21 10:37:13 +01:00
commit_diff.go lint: re-enable depguard in golangci-lint + fix all errors (#45270) 2022-12-06 18:16:04 +01:00
commit_json_test.go Search backend: escape spaces in diff file names (#43698) 2022-10-31 20:24:52 +00:00
commit_json.go Search backend: add structured diff to CommitMatch result (#39383) 2022-07-27 13:24:57 -06:00
commit_test.go rename commit_new to commit and move test (#30849) 2022-02-08 11:58:17 -07:00
commit.go Support ownership search in diffs (#53539) 2023-06-15 19:26:45 +02:00
file_test.go Search: expect trailing newlines in chunk matches (#61247) 2024-04-23 15:03:52 -06:00
file.go Search: expect trailing newlines in chunk matches (#61247) 2024-04-23 15:03:52 -06:00
highlight.go
match_test.go fix(search): correctly handle select:symbol.enum (#64170) 2024-07-31 12:07:27 +03:00
match.go search: simplify Deduper (#61139) 2024-03-14 16:08:23 +01:00
merger_test.go result: sort matches of OR-queries by source count (#47889) 2023-02-21 12:15:43 +01:00
merger.go result: sort matches of OR-queries by source count (#47889) 2023-02-21 12:15:43 +01:00
owner.go Move own codebase to enterprise (#48408) 2023-03-02 16:25:02 +01:00
range_test.go Clean up CommitMatch string types (#29822) 2022-01-17 13:31:03 -07:00
range.go all: use stdlib slices package (#60086) 2024-02-02 13:54:59 +00:00
repo.go search: merge description matches during repo match merging (#41521) 2022-09-08 16:14:24 +00:00
result_type.go search jobs: support diff, commit and path search (#60883) 2024-03-11 13:01:52 +01:00
symbol_test.go notebooks: symbol block (#32370) 2022-03-11 11:18:07 +01:00
symbol.go fix(search): correctly handle select:symbol.enum (#64170) 2024-07-31 12:07:27 +03:00