]> gitweb.factorcode.org Git - factor.git/commitdiff
Make Visual Studio Code integration go directly to lines 1525/head
authorBenjamin Pollack <benjamin@bitquabit.com>
Mon, 15 Feb 2016 20:42:31 +0000 (15:42 -0500)
committerBenjamin Pollack <benjamin@bitquabit.com>
Mon, 15 Feb 2016 20:42:31 +0000 (15:42 -0500)
basis/editors/visual-studio-code/visual-studio-code.factor

index 861be6d60cc9e1e57e492629c741137b1ec7d689..e5d83a90fcf440174c101124c7bc088acd17b511 100644 (file)
@@ -1,6 +1,7 @@
 ! Copyright (C) 2015 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: editors kernel make memoize namespaces system vocabs ;
+USING: editors kernel make math.parser memoize namespaces
+sequences system vocabs ;
 IN: editors.visual-studio-code
 
 SINGLETON: visual-studio-code
@@ -19,7 +20,8 @@ M: macosx find-visual-studio-code-invocation
 
 M: visual-studio-code editor-command ( file line -- command )
     [
-        visual-studio-code-invocation % drop ,
+        visual-studio-code-invocation % "-g" ,
+        number>string ":" glue ,
     ] { } make ;
 
 os windows? [ "editors.visual-studio-code.windows" require ] when