Feature Request : Disable co-pilot on import statements #8375
Replies: 24 comments 16 replies
-
Having the same issue @pranav1812 , it is almost as if intelisense and copilot are fighting for who gets to import |
Beta Was this translation helpful? Give feedback.
-
I've just been using their shortcuts to dismiss the import suggestion. It doesn't solve the problem but has been helpful for me to still develop easily with Copilot and imports without needing to disable inline suggestions.
|
Beta Was this translation helpful? Give feedback.
-
This is my one major frustration with Copilot. Often even dismissing the suggestion with Esc doesn't bring up the IntelliSense suggestion, so it's very much getting in the way. Would maybe be cool if Copilot could use the actual project structure to make its suggestions for import paths... don't know if that has any legs... failing that an option to disable it specifically for |
Beta Was this translation helpful? Give feedback.
-
That's the showstopper for me using copilot. The suggestion is often even a wrong path. We need to disable this for imports. |
Beta Was this translation helpful? Give feedback.
-
In my case, copilot only kicks in when I hash out the suggestions from IntelliSense. |
Beta Was this translation helpful? Give feedback.
-
Been having fun with Copilot, but this one has been bugging me. 90% of the time the import is wrong and makes it awkward to import. |
Beta Was this translation helpful? Give feedback.
-
If you're using VS Code, I've written an extension that allows you to do exactly this. To have it disable inline suggestions in JS style {
"disable-copilot-comment-completions.inhibitMatchers": [
"^string\\..*\\.js$"
]
} Mind you, that would have the side effect of disabling suggestions in template strings, etc. I could update the extension to allow for 'line content' matching, but that feature is not available yet. For Typescript users, the scope to inhibit suggestions on would be Sorry for the tags, in advance, tagging the Users who expressed frustration here who I might be able to help 😅 |
Beta Was this translation helpful? Give feedback.
-
I'm on the free trial and this is enough to stop me paying - it's just awful, and most of the time wrong. |
Beta Was this translation helpful? Give feedback.
-
It used to not be too bad with a couple of AI imports above the actual imports I wanted, now they seem to be showing up 20-30 imports down -- I have to go searching for them?! There's a whole list of 30-40+ AI Imports that aren't even relevant to what actually exists from what I'd normally expect to see of 3-5 imports being displayed. |
Beta Was this translation helpful? Give feedback.
-
Currently i am doing the following: Disable Copilot to make the imports, then enabling it again to write the code. |
Beta Was this translation helpful? Give feedback.
-
looks like you can trigger vscode autocomplete with option + esc on mac |
Beta Was this translation helpful? Give feedback.
-
any updates on this ? |
Beta Was this translation helpful? Give feedback.
-
I’m losing a lot of productivity messing around with paths since installing copilot. It’s the single worst feature in my opinion. The intellisense is greatly superior. Copilot path suggestions should be shipped off by default IMO. How can we force them off?? |
Beta Was this translation helpful? Give feedback.
-
I am also losing a lot of productivity because of this and considering going back to Tabnine because they do not have this issue. It's sad to see this has gone on for over a year without being fixed. |
Beta Was this translation helpful? Give feedback.
-
really annoying 😤, still waiting for a solution |
Beta Was this translation helpful? Give feedback.
-
In one way it is amusing but it hampers more often than adding to your productivity. The effort you put in to make it work, is far more than you could do it yourself. experienced programmers realize that making it add to your productivity is not that easy. Also, you are vulnerable to get lost very quickly. So don't expect too much yet, however, keep using it (and paying :) ) so that we can use a better copilot in the future. |
Beta Was this translation helpful? Give feedback.
-
Is anybody at GitHub or on the Copilot team even following this? It has a ton of responses and seems like a really basic and important feature request but as far as I can tell from skimming nobody from the team has responded. |
Beta Was this translation helpful? Give feedback.
-
Same.. what the hell is this. |
Beta Was this translation helpful? Give feedback.
-
Please add this option! |
Beta Was this translation helpful? Give feedback.
-
You can use Ctrl+I shortcut to trigger the suggestion feature in VS Code. |
Beta Was this translation helpful? Give feedback.
-
Just adding my complaint to the void that copilot import suggestions are trash and need the ability to be disabled |
Beta Was this translation helpful? Give feedback.
-
This is extremely annoying. Fix this please! |
Beta Was this translation helpful? Give feedback.
-
It's been 1 year+ since I first encountered this bug and there's still no solution. I was so frustrated I actually built my own Copilot equivalent that handles imports correctly by:
If anyone is interesting to try it, you can download the extension here. |
Beta Was this translation helpful? Give feedback.
-
please add feature! |
Beta Was this translation helpful? Give feedback.
-
Copilot has made development so much simpler, but one issue would be really appreciated if resolved.
Being a nodejs developer, I need to import (require) from multiple files in the project. The relative paths were better recommended by VS code IntelliSense (if that's what they call it, you get the idea, right) as it knows the directory structure. But when co-pilot is on, it tries to guess the file name which is wrong 95% of the times. Manual filling of relative path sometimes get difficult (confusing ../../../{ whereHaveIReached }) in large directory structures
This can be resolved by either of the 2 ways:
1. Auto disabling of co-pilot only on require / include / import statements or something like that, OR
2. Give the user an option to configure co-pilot for the line syntax where the user wants vs-code intellisense to takeover
PS: if there's already a way, please let me know :)
Beta Was this translation helpful? Give feedback.
All reactions