Permalink
Browse files

Do not allow Tab expander in JS/JSX

  • Loading branch information...
1 parent 1d853d0 commit a2f0a88bceb1fdd62d69c5e97592742248a4857c @sergeche sergeche committed Apr 8, 2015
Showing with 5 additions and 2 deletions.
  1. +1 −0 create-bundle.sh
  2. +3 −1 main.js
  3. +1 −1 package.json
View
@@ -1 +1,2 @@
+npm i
zip -r brackets.zip . -x \*.git\*
View
@@ -91,7 +91,9 @@ define(function(require, exports, module) {
if (action == 'expand_abbreviation_with_tab') {
var syntax = editor.getSyntax();
var activeEditor = editor.editor;
- if (!preferences.getPreference('tab') || !resources.hasSyntax(syntax)) {
+ // do not allow tab expander in JS/JSX since it breakes native
+ // snippets and indentation. Hardcode this exception for now
+ if (syntax === 'jsx' || !preferences.getPreference('tab') || !resources.hasSyntax(syntax)) {
return df.reject();
}
View
@@ -1,7 +1,7 @@
{
"name": "brackets-emmet",
"title": "Emmet",
- "version": "1.2.1",
+ "version": "1.2.2",
"description": "High-speed HTML and CSS workflow",
"homepage": "http://emmet.io",
"author": "Sergey Chikuyonok <serge.che@gmail.com> (https://github.com/sergeche)",

0 comments on commit a2f0a88

Please sign in to comment.