https://kedro.org/ logo
#random
Title
# random
n

Nok Lam Chan

03/05/2024, 11:56 AM
Does anyone know how to "move symbol" to a different file in VSCode, similar to the PyCharm refactoring feature? It seems like that it is possible and I see the
moveSymbol
command from Pylance, but I cannot trigger it. https://hynek.me/til/vs-code-refactoring/
i

Iñigo Hidalgo

03/05/2024, 3:48 PM
holymoly how am I just finding out about this!! Ctrl Shift R brings up the move symbol menu:
This was the one thing I missed still from PyCharm
💯 1
n

Nok Lam Chan

03/05/2024, 4:25 PM
Can you screenshot the menu? I don't see it
Ctrl + Shift + R brings up the quick fix menu but I don't see move symbols there
i

Iñigo Hidalgo

03/05/2024, 4:39 PM
image.png
🥲 1
I get the impression it depends on some language server functionality which you might not have activated. If you ctrl click on an object does it take you to its definition?
just saw you lol
😂 1
n

Nok Lam Chan

03/05/2024, 4:56 PM
I am on the latest release and using Pylance, ctrl + click does work for me yet the menu does not show up. This is the things that I always rely on PyCharm
I have figured it out at the end
i

Iñigo Hidalgo

03/06/2024, 10:41 AM
what was it?
n

Nok Lam Chan

03/06/2024, 11:12 AM
I think it's a bug, but seems that the dev team doesn't agree. I had an outdated path index point kedro to the wrong path (it's an empty folder). Everything works (i.e. Go to defintion, find reference), so I am not sure what makes this particular feature special. Once I point it back to the correct path or remove it, it works https://github.com/microsoft/pylance-release/discussions/2620#discussioncomment-8686071
🎉 1
2 Views