-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Allow line numbers and ranges in autocomplete #4238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
58bab57 to
d2aa9c8
Compare
cc5d9a7 to
48949a6
Compare
423d1a3 to
20069cf
Compare
f1dc981 to
3e15a39
Compare
df8bdf9 to
0dd5039
Compare
da77c5f to
7c0898e
Compare
f8ee907 to
6a9856d
Compare
7c0898e to
79cde59
Compare
dc2b400 to
f3ef634
Compare
77328b0 to
5c4d8db
Compare
5c4d8db to
975a723
Compare
|
@rekram1-node Sounds good to me, I changed it over |
|
/review |
| ...result.data.map( | ||
| (item): AutocompleteOption => ({ | ||
| display: Locale.truncateMiddle(item, width), | ||
| ...result.data.map((item): AutocompleteOption => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
when I get a chance ill pull it down and try it I think this will be a good addition if its done well |
|
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. |



No description provided.