fix kiss-vscode fallback errors. Close #70
This commit is contained in:
@@ -38,18 +38,18 @@
|
|||||||
(FileSystem.rename lastConfigDir activeConfigDir))
|
(FileSystem.rename lastConfigDir activeConfigDir))
|
||||||
}
|
}
|
||||||
(catch [e] (throw "failed to delete bad config: $e")))
|
(catch [e] (throw "failed to delete bad config: $e")))
|
||||||
|
(#if test
|
||||||
|
// If there's a build error when testing, throw a test failure
|
||||||
|
(throw errorMessage)
|
||||||
|
// If there's a build error at runtime, tell the user
|
||||||
|
(showCompileError errorMessage))
|
||||||
// When user config fails to build, use the default
|
// When user config fails to build, use the default
|
||||||
// Counterintuitively, this unless is correct:
|
// Counterintuitively, this unless is correct:
|
||||||
(unless fallbackToDefault
|
(unless fallbackToDefault
|
||||||
(Vscode.window.showErrorMessage errorMessage)
|
|
||||||
(warningMessage "Falling back to the default Kiss-VSCode Config")
|
(warningMessage "Falling back to the default Kiss-VSCode Config")
|
||||||
(unless config
|
(unless config
|
||||||
(tryLoadConfig true)))
|
(tryLoadConfig false true)))
|
||||||
(#if test
|
|
||||||
// If there's a build error when testing, throw a test failure
|
|
||||||
(throw errorMessage)
|
|
||||||
// If there's a build error at runtime, tell the user
|
|
||||||
(showCompileError errorMessage))
|
|
||||||
}]
|
}]
|
||||||
|
|
||||||
// Choose where to find the custom config
|
// Choose where to find the custom config
|
||||||
|
Reference in New Issue
Block a user