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)"
|
||||
],
|
||||
"command": "cmd",
|
||||
"args": [
|
||||
"/c",
|
||||
"echo",
|
||||
"Build Complete"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
@@ -48,7 +53,8 @@
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new",
|
||||
"focus": false
|
||||
"focus": false,
|
||||
"close": true
|
||||
},
|
||||
// "dependsOn": "Compress dist Folder Debug",
|
||||
"problemMatcher": "$python"
|
||||
@@ -80,7 +86,8 @@
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new",
|
||||
"focus": false
|
||||
"focus": false,
|
||||
"close": true
|
||||
},
|
||||
"problemMatcher": "$python"
|
||||
},
|
||||
|
||||
@@ -107,26 +107,7 @@ class Config:
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
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):
|
||||
if self._config is None:
|
||||
raise RuntimeError("Configuration not loaded")
|
||||
|
||||
Reference in New Issue
Block a user