Commit b9c3a9a
Improve namespace reference detection logic
- Use exclusive range for line_before_cursor (characters before cursor)
- Check pattern position relative to cursor more precisely
- Handle clicking anywhere in the namespaced class name
- Prevent false positives when pattern appears elsewhere on line
Co-authored-by: kwerle <[email protected]>1 parent b6c20b9 commit b9c3a9a
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 247 | + | |
252 | 248 | | |
253 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| |||
0 commit comments