Sublime Forum

Two js files in same folder have different tmTheme

#1

I’m using Sublime Text 3 Build 3083 on a Mac.

I’m working on a React-Native project with a number of JavaScript files, all ending in the .js extension.

Whichever of these files I’m editing, when I select Preferences > Settings - More > Syntax-Specific, the JavaScript (Babel).sublime-settings file is opened.

The first line there reads:

"color_scheme": "Packages/User/Cobalt.tmTheme",

but inexplicable things are occurring. When I change colors in Cobalt.tmTheme, the changes don’t show up in any of the JS files. And half the JS files are using a different color scheme than the other JS files:

For instance, here the comment is blue:

https://drive.google.com/file/d/0B9Vy_hSimsjuS0l2bzBpeGVmYlU/view?usp=sharing

whereas,here it’s green:

https://drive.google.com/file/d/0B9Vy_hSimsjuYmJ1bUVWV0YtVEk/view?usp=sharing

Yet when I edit the font size, say, in JavaScript (Babel).sublime-settings, it changes in all the JS files.

So I conclude that indeed all these JavaScript files are using the same sublime-settings file, but they’re not all using the same tmTheme file specified there.

Anyone got a clue as to what’s going on?

Thx,

Roger

PS: I’ve posted screencaptures of the two files on Google Drive, hoping they’ll show up here. If not, you can look at them separately:

https://drive.google.com/file/d/0B9Vy_hSimsjuS0l2bzBpeGVmYlU/view?usp=sharing

https://drive.google.com/file/d/0B9Vy_hSimsjuYmJ1bUVWV0YtVEk/view?usp=sharing

0 Likes