When writing python code, I often get “tab” suggestions that I cannot “esc” to remove. These suggestions are in opaque gray, and look like the other tab suggestions, but when I press esc they do not go away. I can double click on them to add, but I can’t seem to do anything to make them go away.
E.g., in the attached screenshot, cursor is trying to add [any] to three locations
Steps to Reproduce
They appear when I’m writing python code.
Expected Behavior
I should be able to press esc, and the suggestions dissapear
Hi, thanks for helping me out! Here are the results from my testing:
I created a new python file in a fresh folder, and copied a python function that I’ve been seeing these unescapable autocompletes. The autocompletes show, and pressing esc does not remove the suggestion. See below: [tuple[Any, …]]
2. 2. I closed Cursor, then opened it from terminal with: cursor --disable-extensions. I still see the same problem.
Does this happen in ALL Python files or specific ones? Just specific ones. And not consistently, even for the same file. For instance, the file that I originally observed this in now behaves differently. The original block of code no longer shows a completion:
Important: There is a new piece of information I’ve noticed. When I hover over the autocompletion text with my mouse, it reads “Double-click to insert”
Hi cursor team (@sanjeed5 )
I would suggest turning this off by default, it’s rather a strange type hinting for python. I never saw such type hinting before, if defining a new variable with type myvar:list = foo or when defining a function args/kwargs and returns it’s understandable, but when using a list() ; tuple() ect.. as conversion functions it is strange.