mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-07-03 10:59:17 +00:00
Make API URL configurable and listen to config changes
Also prevents useless API call when no API key is set
This commit is contained in:
committed by
Juha Ristolainen
parent
24ee812c7d
commit
2bff22d53f
@ -31,6 +31,11 @@
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "Code::Stats API key for this machine."
|
||||
},
|
||||
"codestats.apiurl": {
|
||||
"type": "string",
|
||||
"default": "https://codestats.net/api/my/pulses",
|
||||
"description": "Code::Stats API URL. Only change if you know what you are doing!"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -52,4 +57,4 @@
|
||||
"dependencies": {
|
||||
"axios": "0.15.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user