! Copyright (C) 2020 Doug Coleman.
! See https://factorcode.org/license.txt for BSD license.
-USING: combinators editors editors.visual-studio-code
-io.pathnames io.standard-paths kernel namespaces system
-tools.which ;
+USING: combinators editors.visual-studio-code io.pathnames
+io.standard-paths kernel sequences system tools.which ;
IN: editors.visual-studio-codium
SINGLETON: visual-studio-codium
os {
{ linux [ "codium" which ] }
{ macosx [
- "com.visualstudio.code.oss" find-native-bundle
- [ "Contents/MacOS/Electron" append-path ] [ f ] if* ] }
+ { "com.visualstudio.code.oss" "com.vscodium" }
+ [ find-native-bundle ] map-find
+ [ "Contents/MacOS/Electron" append-path ] when
+ ] }
{ windows [
- { "Microsoft VS Codium" } "codium.cmd" find-in-applications ] }
+ { "Microsoft VS Codium" } "codium.cmd" find-in-applications
+ ] }
} case ;