change tasks, config
This commit is contained in:
11
.vscode/tasks.json
vendored
11
.vscode/tasks.json
vendored
@@ -9,6 +9,11 @@
|
|||||||
"Build LibrarySystem (Debug)"
|
"Build LibrarySystem (Debug)"
|
||||||
],
|
],
|
||||||
"command": "cmd",
|
"command": "cmd",
|
||||||
|
"args": [
|
||||||
|
"/c",
|
||||||
|
"echo",
|
||||||
|
"Build Complete"
|
||||||
|
],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@@ -48,7 +53,8 @@
|
|||||||
"presentation": {
|
"presentation": {
|
||||||
"reveal": "always",
|
"reveal": "always",
|
||||||
"panel": "new",
|
"panel": "new",
|
||||||
"focus": false
|
"focus": false,
|
||||||
|
"close": true
|
||||||
},
|
},
|
||||||
// "dependsOn": "Compress dist Folder Debug",
|
// "dependsOn": "Compress dist Folder Debug",
|
||||||
"problemMatcher": "$python"
|
"problemMatcher": "$python"
|
||||||
@@ -80,7 +86,8 @@
|
|||||||
"presentation": {
|
"presentation": {
|
||||||
"reveal": "always",
|
"reveal": "always",
|
||||||
"panel": "new",
|
"panel": "new",
|
||||||
"focus": false
|
"focus": false,
|
||||||
|
"close": true
|
||||||
},
|
},
|
||||||
"problemMatcher": "$python"
|
"problemMatcher": "$python"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -107,26 +107,7 @@ class Config:
|
|||||||
if self._config is None:
|
if self._config is None:
|
||||||
raise RuntimeError("Configuration not loaded")
|
raise RuntimeError("Configuration not loaded")
|
||||||
self._config.debug = value
|
self._config.debug = value
|
||||||
@property
|
|
||||||
def log_debug(self)->bool:
|
|
||||||
if self._config is None:
|
|
||||||
raise RuntimeError("Configuration not loaded")
|
|
||||||
return self._config.log_debug
|
|
||||||
@log_debug.setter
|
|
||||||
def log_debug(self, value: bool):
|
|
||||||
if self._config is None:
|
|
||||||
raise RuntimeError("Configuration not loaded")
|
|
||||||
self._config.log_debug = value
|
|
||||||
@property
|
|
||||||
def ic_logging(self)->bool:
|
|
||||||
if self._config is None:
|
|
||||||
raise RuntimeError("Configuration not loaded")
|
|
||||||
return self._config.ic_logging
|
|
||||||
@ic_logging.setter
|
|
||||||
def ic_logging(self, value:bool):
|
|
||||||
if self._config is None:
|
|
||||||
raise RuntimeError("Configuration not loaded")
|
|
||||||
self._config.ic_logging = value
|
|
||||||
def save(self):
|
def save(self):
|
||||||
if self._config is None:
|
if self._config is None:
|
||||||
raise RuntimeError("Configuration not loaded")
|
raise RuntimeError("Configuration not loaded")
|
||||||
|
|||||||
Reference in New Issue
Block a user