You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Benjamin Pasero (@bpasero) I discussed that in length with alexandrudima and Erich Gamma (@egamma) and I understand the history of the change. But the current behavior is very unexpected. The long term solution is for sure to have more extensions handle a file type and let the user decide which one he wants to use. In the short term we might the firstLine rule be combined with an extension. For the shebang we can say that the file must not have an extension to make that rule win.
Dirk Bäumer (@dbaeumer)Erich Gamma (@egamma)alexandrudima I think my motivation for this change was to support the Flow language case where the extension is JS but a first line header indicates it should be treated by the Flow language service.
If you guys have an idea how to still support that scenario, please let me know.
Activity
dbaeumer commentedon Feb 10, 2016
Benjamin Pasero (@bpasero) I discussed that in length with alexandrudima and Erich Gamma (@egamma) and I understand the history of the change. But the current behavior is very unexpected. The long term solution is for sure to have more extensions handle a file type and let the user decide which one he wants to use. In the short term we might the firstLine rule be combined with an extension. For the shebang we can say that the file must not have an extension to make that rule win.
bpasero commentedon Feb 29, 2016
Dirk Bäumer (@dbaeumer) Erich Gamma (@egamma) alexandrudima I think my motivation for this change was to support the Flow language case where the extension is JS but a first line header indicates it should be treated by the Flow language service.
If you guys have an idea how to still support that scenario, please let me know.
bpasero commentedon Mar 1, 2016
Since you guys seem to found an agreement, please go ahead and make the change in https://github.com/Microsoft/vscode/blob/master/src/vs/base/common/mime.ts#L123 and let me know for review.
bpasero commentedon Mar 4, 2016
Discussed with Alex and we have an idea how to solve this together with the ability to let the user configure file => language setting.
bpasero commentedon Mar 7, 2016
The new order is: full filename match, pattern match, extension match, firstline match.