Skip to content
This repository
Browse code

Autocompile safety wrapper fix

  • Loading branch information...
commit 9e2b5014cac5df040132ee2f589660fc5724855a 1 parent ab104d1
Denis Stepanov authored
3  src/coffeescript/nb/CoffeeScriptParser.java
@@ -13,6 +13,7 @@
13 13
 // limitations under the License.
14 14
 package coffeescript.nb;
15 15
 
  16
+import coffeescript.nb.options.CoffeeScriptSettings;
16 17
 import java.util.Collection;
17 18
 import java.util.Collections;
18 19
 import java.util.List;
@@ -48,7 +49,7 @@ public void parse(final Snapshot snapshot, Task task, SourceModificationEvent ev
48 49
 
49 50
             public ParsingResult call() throws Exception {
50 51
                 CharSequence text = snapshot.getText();
51  
-                CoffeeScriptRhinoCompiler.CompilerResult compilerResult = CoffeeScriptRhinoCompiler.get().compile(text.toString(), true);
  52
+                CoffeeScriptRhinoCompiler.CompilerResult compilerResult = CoffeeScriptRhinoCompiler.get().compile(text.toString(), CoffeeScriptSettings.get().isBare());
52 53
                 return new ParsingResult(snapshot, compilerResult);
53 54
             }
54 55
         });

0 notes on commit 9e2b501

Please sign in to comment.
Something went wrong with that request. Please try again.