vscode-bazel icon indicating copy to clipboard operation
vscode-bazel copied to clipboard

Feature Request: Auto Docstring Generation

Open UebelAndre opened this issue 5 years ago • 2 comments

I've opened a pull-request to add Starlark support to NilsJPWerner/autoDocstring#159 but it feels like this plugin should provide the same or similar functionality.

UebelAndre avatar Sep 02 '20 16:09 UebelAndre

I see that buildifier warns when things don't have docstrings. Maybe it could implement a fix for this, and this extension could apply those fixes (this might be already implemented)?

cameron-martin avatar Jan 29 '24 18:01 cameron-martin

Alternatively, I think this would also be nice to have inside the language servers?

A buildifier fix would necessarily be incomplete / partial, since buildifier could only generate the skeleton but not the actual documentation. As such, somebody needs to open the file in his editor, anyway, and this doesn't make sense as a "head-less" fix.

Implementing this in the language server would have the benefit, that we could take advantage of LSP's snippet support so people can use the tab key to switch between the various places in the template

CC @withered-magic @cameron-martin

vogelsgesang avatar Apr 06 '24 17:04 vogelsgesang