1 ! Copyright (C) 2015 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: editors kernel make memoize namespaces system vocabs ;
4 IN: editors.visual-studio-code
6 SINGLETON: visual-studio-code
7 visual-studio-code editor-class set-global
9 HOOK: find-visual-studio-code-path os ( -- path )
11 MEMO: visual-studio-code-path ( -- path )
12 \ visual-studio-code-path get-global [
13 find-visual-studio-code-path
17 M: visual-studio-code editor-command ( file line -- command )
19 visual-studio-code-path ,
23 os windows? [ "editors.visual-studio-code.windows" require ] when