-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit 5d221b9
Fix reference fields gives too many results (#4641)
References to record fields gives too many results
This commit adds tests for references to record fields and
updates the symbol retrieval logic to ensure that references to record
fields are handled correctly. The changes is small:
- The `getNamesAtPoint` function in `AtPoint.hs` now
only searches for `Name` that are in the source node from `HieAst`.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>1 parent f43d811 commit 5d221b9
File tree
5 files changed
+46
-3
lines changed- ghcide-test
- data/references
- exe
- ghcide/src/Development/IDE/Spans
5 files changed
+46
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | + | ||
16 | + | ||
17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
159 | 181 |
| |
160 | 182 |
| |
161 | 183 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
116 | - | ||
116 | + | ||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
|
0 commit comments