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
{{ message }}
Repository navigation
Allow file name to language associations via settings #3612
when i open the file it does not detect it is yaml and sets it to plain text mode?
i can choose yaml from the language mode selector (to get nice coloring) but then i get an error on that first yaml 1.1 line
Expected a JSON object, array or literal
should it auto detect? or is there a way to associate files with languages? (no, see link below)
ya nevermind the error i cannot reproduce it either but i think it came because i changed the file type a couple times before i ended up on yaml. because each time i open the project i have to reselect yaml type for each file thanks
changed the title [-]allow file association for yaml .controller & .asset file[/-][+]Allow file name to language associations via settings[/+]on Mar 4, 2016
Erich Gamma (@egamma) pushed a change to have an action in the mode picker that hints a user to the fact that this is configurable now, feedback welcome:
The top most quick box entries are difficult to discover since the currently defined association is revealed. How about not revealing the current mode when the user has changed the association. In this way the top most entries are always visible?
What is a bit disturbing are the info messages that appear when you have a workspace settings, but this is not the common case
I suggest to make Configure in Settings... more verbose, e.g., Open Settings to configure default for ".html" or Configure default for ".html"
My wording suggestions:
Configure in Settings... -> Configure file associations...
Configure defaults for '.md' -> Configure file association for '.md'...
My understanding is that this will always open the settings, therefore the ellipses (...).
IMO it's also important to mention 'file associations' because that's the name of the setting and the concept the user should remember.
Activity
aeschli commentedon Mar 2, 2016
Rakka Rage (@rakkarage) I can't reproduce the error you get on the first line. Do you have any extensions installed that might have an impact on Yaml?
rakkarage commentedon Mar 3, 2016
ya nevermind the error i cannot reproduce it either but i think it came because i changed the file type a couple times before i ended up on yaml. because each time i open the project i have to reselect yaml type for each file thanks
[-]yaml .controller & .asset file[/-][+]allow file association for yaml .controller & .asset file[/+][-]allow file association for yaml .controller & .asset file[/-][+]Allow file name to language associations via settings[/+]bpasero commentedon Mar 8, 2016
Erich Gamma (@egamma) pushed a change to have an action in the mode picker that hints a user to the fact that this is configurable now, feedback welcome:
egamma commentedon Mar 10, 2016
Benjamin Pasero (@bpasero) the quick box looks good.
The top most quick box entries are difficult to discover since the currently defined association is revealed. How about not revealing the current mode when the user has changed the association. In this way the top most entries are always visible?
What is a bit disturbing are the info messages that appear when you have a workspace settings, but this is not the common case

I suggest to make
Configure in Settings...more verbose, e.g.,Open Settings to configure default for ".html"orConfigure default for ".html"bpasero commentedon Mar 11, 2016
Erich Gamma (@egamma) good ideas, here is the new look depending on what you do:
Untitled file

File with extension

File without extension

Should we stop showing the info message for workspace settings at all?
aeschli commentedon Mar 11, 2016
My wording suggestions:
Configure in Settings... -> Configure file associations...
Configure defaults for '.md' -> Configure file association for '.md'...
My understanding is that this will always open the settings, therefore the ellipses (...).
IMO it's also important to mention 'file associations' because that's the name of the setting and the concept the user should remember.
egamma commentedon Mar 11, 2016
I'd keep it, it is useful since it tells me the setting.
👍 on Martin Aeschlimann (@aeschli) 's wording suggestions
bpasero commentedon Mar 11, 2016
Ok pushed. Thanks!