Uh oh!
There was an error while loading. Please reload this page.
Allow line numbers and ranges in autocomplete - #4238
Conversation
58bab57 to
d2aa9c8Compare423d1a3 to
20069cfComparef1dc981 to
3e15a39Comparedf8bdf9 to
0dd5039Compareda77c5f to
7c0898eCompare7c0898e to
79cde59Comparedc2b400 to
f3ef634Compare77328b0 to
5c4d8dbCompare5c4d8db to
975a723Comparerekram1-node
commented
Dec 23, 2025
ewired
commented
Dec 23, 2025
@rekram1-node Sounds good to me, I changed it over |
rekram1-node
commented
Dec 24, 2025
/review |
| ...result.data.map( | ||
| (item): AutocompleteOption => ({ | ||
| display: Locale.truncateMiddle(item, width), | ||
| ...result.data.map((item): AutocompleteOption => { |
There was a problem hiding this comment.
Style suggestion: The let statements for url and filename could be avoided using an IIFE pattern (see packages/opencode/src/util.iife.ts for reference). However, this is minor and the current implementation is still readable - feel free to keep as-is if you prefer the simplicity.
rekram1-node
commented
Dec 24, 2025
when I get a chance ill pull it down and try it I think this will be a good addition if its done well |
rekram1-node
commented
Dec 27, 2025
ewired
commented
Dec 27, 2025
rekram1-node
commented
Dec 27, 2025
The intermittent display here is because it only respects valid line ranges where the end is greater than the start. As soon as you type one more digit in the number after the dash there, it will be greater than 11 and show the range on all the files. This could have definitely been better, now it uses only the start value while you're still typing an invalid range. It will reject any non-numeric input besides a trailing dash in any part of the range. This prevents it from being so jumpy while typing now. |
Uh oh!
There was an error while loading. Please reload this page.



No description provided.