rubberduck-ai/rubberduck-vscode

Variable 'selectedText' is undefined

davidarny opened this issue · 1 comments

Hi! Thanks for great extension, loving it ❤️

Just want to note that when clicking Edit Code button with nothing selected a VSCode error popup will appear. I think can be solved by adding a check for a selectedText or disabling a button

Screen.Recording.2023-03-14.at.17.16.18.mov
opus-x commented

I have the same issue when invoking Diagnose Errors from the context menu. Seems to only happen when a part of the code is selected and a Python module is imported but not installed.