try using home directory for kiss-vscode active config
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
(defun userHome [] (or (Sys.getEnv "MSYSHOME") (Sys.getEnv "HOME") (Sys.getEnv "UserProfile")))
|
||||||
(defun userConfigDir []
|
(defun userConfigDir []
|
||||||
(joinPath
|
(joinPath
|
||||||
(or (Sys.getEnv "MSYSHOME") (Sys.getEnv "HOME") (Sys.getEnv "UserProfile"))
|
(userHome)
|
||||||
".kiss"))
|
".kiss"))
|
||||||
|
|
||||||
(defvar &mut activeConfigDir "")
|
(defvar &mut activeConfigDir "")
|
||||||
@@ -129,13 +130,12 @@
|
|||||||
// TODO overload Prelude.print to use showInformationMessage
|
// TODO overload Prelude.print to use showInformationMessage
|
||||||
|
|
||||||
(set builtinConfigDir (joinPath context.extensionPath "config"))
|
(set builtinConfigDir (joinPath context.extensionPath "config"))
|
||||||
(set activeConfigDir (joinPath context.extensionPath "_activeConfig"))
|
(set activeConfigDir (joinPath (userHome) ".kiss-vscode" "activeConfig"))
|
||||||
(set lastConfigDir (joinPath context.extensionPath "_lastActiveConfig"))
|
(set lastConfigDir (joinPath (userHome) ".kiss-vscode" "lastActiveConfig"))
|
||||||
(tryLoadConfig)))
|
(tryLoadConfig)))
|
||||||
|
|
||||||
(defun :Void main []
|
(defun :Void main []
|
||||||
(#when test
|
(#when test
|
||||||
// TODO
|
|
||||||
(set builtinConfigDir "config")
|
(set builtinConfigDir "config")
|
||||||
(set activeConfigDir "_activeConfig")
|
(set activeConfigDir "_activeConfig")
|
||||||
(set lastConfigDir "_lastActiveConfig")
|
(set lastConfigDir "_lastActiveConfig")
|
||||||
|
|||||||
Reference in New Issue
Block a user