microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

Syntax specific settings from `TypeScript.sublime-settings` should override built-in `Preferences.sublime-settings` #301

Open chbrown opened 9 years ago

chbrown commented 9 years ago

Context:

Sublime Text 3 build 3083, Mac OS X 10.9.5

  1. Install TypeScript-Sublime-Plugin via Package Control or source
  2. Open up a TypeScript file, ensure that TypeScript is the active syntax
  3. Open TypeScript.sublime-settings by navigating the menu bar Sublime Text -> Preferences -> Settings - More -> Syntax Specific - User
  4. Insert the following: { "typescript_auto_format": false }
  5. Restart ST3
  6. Open TypeScript file, type var x=1
  7. Type ;

Expected behavior: I end up with var x=1;

Actual behavior: I end up with var x = 1;

I shouldn't have to touch the package's own Preferences.sublime-settings file. That file gets overwritten on subsequent installs, so it's not a good place for my personal user preferences.

hoanhtien commented 9 years ago

@chbrown As a work around, you can set your settings in Package\User\Preferences.sublime-settings file (Menu -> Preferences -> Settings - User).

chbrown commented 9 years ago

Oh, cool, thanks @hoanhtien. Not the optimal solution, but certainly better than setting it in the package's Preferences.sublime-settings.

TsumiNa commented 9 years ago

so why not move settings to a separate setting file just like other plugins did to keep Preferences.sublime-settings clearly :)