Open Holzhauer opened 2 years ago
Hi @Holzhauer thank you for the feedback! I was able to reproduce this (the entry in the context menu being disabled). I think the functionality only covers functions so probably we should change the name of the entry to something like Generate function doctring
.
Also, as a workaround for the entry being disabled you can generate the docstring using the shortcut Ctrl+Alt+D
(works for both single line function definitions and multiline function definitions):
Hi @dalthviz, thanks! Three issues: 1) I realised that Ctrl+Alt+D does not work when the last line of the multiline-header is not intended, so it doesn't work for
def test(a,
b,
c
):
2) Ctrl+Alt+D does not work when the cursor is in the last line of the multiline-header - it needs to be in the next line (for single line header it works when the cursor is in that line). 3) I'd consider it a bug that the menu entry is disabled when the shortcut works.
Thank you for the new info @Holzhauer ! We will try to implement fixes for those things in a future release :+1:
Description
What steps will reproduce the problem?
place the cursor at the end of a class header line
right-click
The menu entry "Generate docstring" is disabled. The same is true when placing the cursor at the end of a multiline-function-header.
This is not intuitive. At least, it should be documented well.
Versions
Dependencies