-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt user if there is a collision in file to language association (two extensions registering different languages for a file extension) #34450
Comments
@nehashri Have you figured out which other extension your extension is "fighting with" over the Unfortunately, today, extensions are processed in alphabetical order and, for file extensions => lang association, the last one wins. |
@alexandrudima The ruby RSpec is if fighting with Gauge extension in our projects. Gauge can be used with ruby too. In this case both the extensions are activated in the workspace. The only way to resolve this is to have file associations for the project, where .spec files will be associated to gauge. |
I agree this is unhappy, but it seems to me that nobody except the users working on a specific project would know if their In VS Code, this can currently be configured per-project via the
For all languages, users have the chance to spot the currently configured language in the bottom right status bar: I'm not sure what else would be needed from VS Code to improve end-user experience ? |
@alexandrudima I understand that the only way to solve this is through a custom association. I would like a feature where the user gets a pop-up/notification/warning that this has happened and that he/she can change the behaviour through a custom association. I am taking about a notification similar to the one that comes when a file is opened, if not extension that can handle such a file is found, notification pops up with the recommended extensions that can be used. |
Thank you for the follow up, now I understand what you would have in mind. I've updated the title to reflect this. fyi @bpasero |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
Hi, I am trying to write an extension that recognizes ".spec" files as Gauge language. However, if a user has installed some plugins the file association is overridden by the other extension. I noticed that my extension does not even get activated in this case. Is there any way that this can be prevented, other than the user changing the settings per workspace? Something that can be done in the extension itself would be useful.
Or when a new extension is installed, can the user choose the default file association if there are conflicts.
The text was updated successfully, but these errors were encountered: