SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

Fix Save command not working in "contents" of sublime-completions #159

Closed deathaxe closed 6 years ago

deathaxe commented 7 years ago

PackageDev provides a key binding ctrl+s to convert snippets.

This key binding overrides the default save command.

Therefore a sublime-completions file can't be saved, if the cursor is within the "contents" key as its value is scoped as source.sublime.snippet.embedded which matches the key binding's selector.

This commit therefore

  1. extends the selector of the keybinding to exclude source.json
  2. disables the packagedev_snippet_from_raw_snippet in source.json