vscode-autohotkey2-lsp icon indicating copy to clipboard operation
vscode-autohotkey2-lsp copied to clipboard

Request: Add optional indicator for parameters on calltips

Open GroggyOtter opened this issue 7 months ago • 5 comments

Can you please change the display behavior for optional parameters in the calltip?
Items marked as optional in their JSDoc tag should display as optional in the calltip:

This is how it's marked in the definition: @param {(String)} [Text]

This is how the calltip looks:
Code_LwFNzFRUjg

This is how I think it should look:
Adding brackets around the parameter would indicate the parameter is optional, as sometimes it's not apparent in the code line up top.
(sorry for the crappy Photoshop. not an artist.)
Code_LwFNzFRUjg - Copy

GroggyOtter avatar Jul 08 '24 13:07 GroggyOtter