FileIcons update ruined CustomFileTypes babel-language association


#1

Ever since the last file-icons package update my “customFileTypes” config setting no longer works.

Every .js file I open now default to ‘JavaScript’ grammar even though I’ve set the customFileTypes config to associate it with ‘Babel’ grammar.

I tried uninstalling file-icons but that doesn’t help, grammar still defaults to ‘JavaScript’

core:
    customFileTypes:
      "source.js.jsx": [
        ".js"
      ]

#2

It works for me if you remove the . in ".js":

core:
    customFileTypes:
      "source.js.jsx": [
        "js"
      ]

x-ref: https://github.com/gandm/language-babel/issues/510#issuecomment-433466949


#3

thanks that did the trick!