don't continue installing vsix if kvscode compile files
This commit is contained in:
@@ -8,16 +8,22 @@
|
|||||||
(object)
|
(object)
|
||||||
**(throw error))
|
**(throw error))
|
||||||
|
|
||||||
|
(defMacro forceUpdateFailure [error]
|
||||||
|
`{
|
||||||
|
(handleUpdateFailure ,error)
|
||||||
|
(return)
|
||||||
|
})
|
||||||
|
|
||||||
(function :Void updateKissVscode [&opt _]
|
(function :Void updateKissVscode [&opt _]
|
||||||
(trySpawnSync "haxe" ["build.hxml"] (options) handleUpdateFailure)
|
(trySpawnSync "haxe" ["build.hxml"] (options) forceUpdateFailure)
|
||||||
(if (= "Windows" (Sys.systemName))
|
(if (= "Windows" (Sys.systemName))
|
||||||
{
|
{
|
||||||
(trySpawnSync "cmd.exe" ["/c" "npm" "install"] (options) handleUpdateFailure)
|
(trySpawnSync "cmd.exe" ["/c" "npm" "install"] (options) forceUpdateFailure)
|
||||||
(trySpawnSync "cmd.exe" ["/c" "vsce" "package"] (options) handleUpdateFailure)
|
(trySpawnSync "cmd.exe" ["/c" "vsce" "package"] (options) forceUpdateFailure)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
(trySpawnSync "npm" ["install"] (options) handleUpdateFailure)
|
(trySpawnSync "npm" ["install"] (options) forceUpdateFailure)
|
||||||
(trySpawnSync "vsce" ["package"] (options) handleUpdateFailure)
|
(trySpawnSync "vsce" ["package"] (options) forceUpdateFailure)
|
||||||
})
|
})
|
||||||
(awaitLet [_ (executeCommand
|
(awaitLet [_ (executeCommand
|
||||||
"workbench.extensions.command.installFromVSIX"
|
"workbench.extensions.command.installFromVSIX"
|
||||||
|
Reference in New Issue
Block a user