miniblog.

← Back to all posts
13
Should code completion offer private methods/fields? If the user chooses a private method, you can offer a quickfix to change its visibility. It's clutter though. I frequently find myself wanting fields that I haven't exposed yet, and frustrated that the IDE hides them.

3 Comments

@wilfredh provide them but mark them somehow as private, so you know the consequences
it should offer private methods/fields, yeah. i remember toggling that on for our internal rust-analyzer configuration a year or two ago
Aha, I'd completely forgotten about that! Did you ever consider persuading upstream to change the default? (FWIW I'm writing my own LSP for my personal project, so I have complete freedom in this case :) )