We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 132e217 + 2f4bff5 commit e7da37fCopy full SHA for e7da37f
src/commands/import_symbol.py
@@ -90,6 +90,10 @@ def _insert_new_import_statement_region(
90
self.view.insert(self.sublime_edit, 0, selected_import_option)
91
92
def _add_import_to_view(self, index: int):
93
+ if index < 0:
94
+ logger.debug("Not selected any item, returning")
95
+ return
96
+
97
logger.debug(f"Select {index} from popup menu")
98
import_option_list: List[str] = list(self.import_statements.keys())
99
selected_option = self.import_statements[import_option_list[index]]["from_part"]
0 commit comments