You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my color scheme, doSomethingNew will be white instead of green, because it doesn't exist. Your highlights may vary.
What would be nice is, when I go to implement it, I get a completion:
fnd|// This offers doSomethingNew as a completion
In addition to the convenience, it means I know that the name of the method I'm implementing is the name which I already gave it. Sort of like the very nice feature in switch statements where the completions only contain unreferenced enums, so if you don't get a completion you know you've covered all cases, in this case if there are no completions then I'd know that I don't have any method stubs in the code which need to be written out.
There are some more advanced things which could be done, in terms of filling in the types based on what the prior code passes them, but just the completion would be a great feature.
The text was updated successfully, but these errors were encountered:
That would be a lovely stretch goal, indeed. I can see where the general comptime and return-type-inference challenges with type info would apply there as well.
Even moving whatever information tells the language server that a nonexistent function shouldn't be function-colored, to the declaration-level autocomplete context, would be a solid quality-of-life feature.
Say I'm working on a function, and realize I'll need another method to finish it:
In my color scheme,
doSomethingNew
will be white instead of green, because it doesn't exist. Your highlights may vary.What would be nice is, when I go to implement it, I get a completion:
In addition to the convenience, it means I know that the name of the method I'm implementing is the name which I already gave it. Sort of like the very nice feature in switch statements where the completions only contain unreferenced enums, so if you don't get a completion you know you've covered all cases, in this case if there are no completions then I'd know that I don't have any method stubs in the code which need to be written out.
There are some more advanced things which could be done, in terms of filling in the types based on what the prior code passes them, but just the completion would be a great feature.
The text was updated successfully, but these errors were encountered: