Sublime Forum

.sublime-settings within packages not taking effect?

#1

I’m encountering an issue which looks like a bug, but most probably is just me not understanding how things are actually supposed to work. This is the situation.

-I have Packages/MyLang/ where I have a custom .sublime-syntax.
-I open a file and select the MyLang syntax to be applied to it. Then I click on Preferences -> Setings - Syntax specific and change the color scheme from Monokai to Breakers. I save the changes. Now I have Packages/User/MyLang.sublime-settings and the files that use MyLang syntax correctly use the Breakers color scheme
-But since I want the syntax-specific settings be shipped alongside my package, I move/MyLang.sublime-settings to Packages/MyLang.

The problem is, after doig this, MyLang.sublime-settings is no longer being applied and Monokai is being used instead of Breakers.

So, is there anyway to make it so that .sublime-settings can be stored in packages and actually take effect?

And a follow-up question, would it be possible to store sublime resources, such as sublime-settings and sublime-completions in a package subfolder, for better structuring my packages?

0 Likes

#2

Syntax specific sublime-settings may take effect after restart only. They seem to be read upon startup only but are not tracked for changes in “older” builts. This issue was fixed in one of the most recent dev builts - can’t remember which one.

would it be possible to store sublime resources

You can place all resources into subfolders of your choice. There was even a discussion about a kind of standard folder structure in the past, which some packages picked up more or less.

1 Like