SublimeJEDI
SublimeJEDI copied to clipboard
Hover for function definition does not work with MagicPython
I am not sure if this is a bug in MagicPython or SublimeJEDI.
On my machine, hovering over a Python function does not show the tooltip with the function definition and docstring when MagicPython is used. However, it does work with the default Python package.
Using the context menu option works in both cases.
ST 3207 SublimeJEDI 0.14.0 MagicPython 1.1.1
I can confirm this. The reason is that SublimeJEDI will show docstrings only on scopes source.python & (variable | entity.name)
. The default Python syntax assings the following scopes to functions:
-
source.python
-
meta.function-call.python
-
meta.qualified-name.python
-
variable.function.python
-
meta.generic-name.python
MagicPython on the other hand will only assign the scopes
-
source.python
-
meta.function-call.python
-
meta.function-call.generic.python
Therefore the & variable
condition is not met. The same holds for PythonImproved.
https://github.com/srusskih/SublimeJEDI/blob/master/sublime_jedi/helper.py#L82
Any idea how one could make these compatible? I could help to implement that.