Skip to content

Commit 4729bf6

Browse files
committed
Fix CoffeeScript selection based run
Running selected (or buffered) CoffeeScript would just freeze without this --cli option. Signed-off-by: Daniel Bayley <[email protected]>
1 parent 46bbf6f commit 4729bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/grammars.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ module.exports =
4949
CoffeeScript:
5050
"Selection Based":
5151
command: "coffee"
52-
args: (context) -> ['-e', context.getCode()]
52+
args: (context) -> ['-e', '--cli', context.getCode()]
5353
"File Based":
5454
command: "coffee"
5555
args: (context) -> [context.filepath]
5656

5757
'CoffeeScript (Literate)':
5858
"Selection Based":
5959
command: "coffee"
60-
args: (context) -> ['-e', context.getCode()]
60+
args: (context) -> ['-e', '--cli', context.getCode()]
6161
"File Based":
6262
command: "coffee"
6363
args: (context) -> [context.filepath]

0 commit comments

Comments
 (0)