Im doing some plugin development (mostly for fun). I have a plugin that calls
self.view.window().open_file(filename+":"+lineNo, sublime.ENCODED_POSITION)
self.view.window().open_file(filename)
and in both cases it opens some filetypes with plain text syntax. If I open these files through the menu bar (file->open file) it detects the syntax as expected.
So far I’ve seen this with hpp/cpp files and yaml files. It works like expected with .py and .sh files though. Can anyone provide some insight into why I might be seing this behavior ? or maybe how to avoid it ?
Much appreciated,
- JW