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
It would be nice to add completion suggestions for the 'Add Include' command. Although, this doesn't seem straightforward with the current implementation that uses the input box.
One idea is that 'Add Include' could open a small CodeLens to the spot where the new include would be added, in which case auto-completions would be provided automatically by other extensions. I think I like this idea, except in order to place includes based on if they are a system header (#include <...>) or a project header (#include "...") it would probably require 2 different commands in order to automatically place the starting #include prompt in the right spot. I'm not a big fan of requiring 2 different commands since it seems a little clunky, but (counterintuitively) this might be mitigated by having a third command that just goes to the end largest block of includes, not caring if they are system or project headers.
Also, I have no experience with the CodeLens api, so I don't know how easy this would be. Suggestions on how to implement this are welcome.
The text was updated successfully, but these errors were encountered:
The CodeLens api wasn't what I thought it was, I was thinking of 'peek locations' (editor.action.peekLocations command). I have played around a bit with this, and it doesn't seem possible to give editing focus to the peek-window. We can insert the start of the include statement, but the user has to click into the window to start typing in it, and manually close the window when they're done. This feels very clunky. I am going to close this for now, because this feature has become a much lower priority, and I think the current implementation is good enough for what it is.
It would be nice to add completion suggestions for the 'Add Include' command. Although, this doesn't seem straightforward with the current implementation that uses the input box.
One idea is that 'Add Include' could open a small
to the spot where the new include would be added, in which case auto-completions would be provided automatically by other extensions. I think I like this idea, except in order to place includes based on if they are a system header (CodeLens
#include <...>
) or a project header (#include "..."
) it would probably require 2 different commands in order to automatically place the starting#include
prompt in the right spot. I'm not a big fan of requiring 2 different commands since it seems a little clunky, but (counterintuitively) this might be mitigated by having a third command that just goes to the end largest block of includes, not caring if they are system or project headers.Also, I have no experience with the
, so I don't know how easy this would be. Suggestions on how to implement this are welcome.CodeLens
apiThe text was updated successfully, but these errors were encountered: