-
Notifications
You must be signed in to change notification settings - Fork 292
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
BUGFIX: 'Connect' command tab completion does not list purchased servers #1905
base: dev
Are you sure you want to change the base?
Conversation
... yeah, that tracks that I'd overlook an associated test case. Let me know if this fix makes sense, and I can adjust the test to match. Edit: Upon closer inspection, the test is failing because the autocomplete code is now including One possible fix would be to add .filter(server => server !== currServ) into the chain, or to directly add that condition to the existing filter, though it would push the length out a bit. I'm not sure what approach would be most desirable. |
I'm really torn about this whole concept. On one hand, yes, the player-purchased servers are valid targets to connect to, from anywhere on the network. On the other hand, with the exception of home, almost none of them are ever useful targets to connect to, so adding them to completion would bloat the list of useful possibilities. And it does it for every server in the network, making it harder to read the useful servers. |
As to fixes for the test: I think the correct thing is to add the "server !== currServ" to the condition, even though it will make it more bulky. (Extra That should make this both pass, and be good to merge. |
Fixes #1904
Repro steps:
connect n00dles
connect
and press TabNote: Format and lint have been run