]> gitweb.factorcode.org Git - factor.git/commitdiff
editors.visual-studio-codium: fix bundle path
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 18 Oct 2023 20:46:08 +0000 (15:46 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 18 Oct 2023 20:46:08 +0000 (15:46 -0500)
they changed it. see https://github.com/factor/factor/pull/2890/files

basis/editors/visual-studio-codium/visual-studio-codium.factor

index d0e6245c5299ba29099797869b12864453e6c6a0..127ea4747196b47940656bab4f461de1a344e58b 100644 (file)
@@ -1,8 +1,7 @@
 ! 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
@@ -13,8 +12,11 @@ M: visual-studio-codium find-visual-studio-code-path
     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 ;