I’m making this language package for Scala with a server backend called Ensime. I depend a lot on filtering so I just act upon scala files with the scope name “source.scala”. When deactivating it I just realized that I was depending on the language-scala package which made the mapping from .scala and .sbt to source.scala in it’s grammar file. To remove this hard dependency, can I just add a grammar/scala.cson like:
'scopeName': 'source.scala' 'name': 'Scala' 'fileTypes': [ 'scala' 'sbt' ]
with nothing else or will this make some kind of conflict? (it seems to work)
Or is there any more idiomatic way to achieve the file-ending to scope-name mapping?