Adds preferences that map extensions and filenames to languages.#7588
Adds preferences that map extensions and filenames to languages.#7588
Conversation
This adds `language.fileExtensions` and `language.fileNames` preferences that can set the language associated with the provided extensions or filenames. These prefs are both objects.
|
hey @busykai, Raymond agreed to look at this but if you have time you might want to take a look since there may be a connection with your language selector. |
src/language/LanguageManager.js
Outdated
There was a problem hiding this comment.
I'd suggest that these two should be used both in _prefState above and in the unit tests (exported with a dangling _).
|
@dangoor done with the review. |
|
Review comments addressed. Ready for re-review @busykai (I did not do anything about the circular dependency. I figured that can be handled separately) |
There was a problem hiding this comment.
Nit: making indent of "=" at the same level as public exports will probably make it more readable.
|
Looks good! Just one minor nit comment which I'm not even sure is a worthy one. |
|
@busykai great. I'll fix the nit and merge. Thanks! |
This adds
language.fileExtensionsandlanguage.fileNamespreferencesthat can set the language associated with the provided extensions or
filenames. These prefs are both objects.
This is a fix for #6831