gapi
url
- https://account.microsoft.com/
- https://dev.azure.com
- https://marketplace.visualstudio.com
sh
npm install -g yo generator-code vsce
yo code
vsce package
vsce publish
your_api.gapi
# target file
>src/api/user.gapi.js
# api base
^/user/
# GET /user/token
token
# POST /user/login
# name=&pin=
.login?name&pin&token
# GET /user/userInfo?user=&auth=true
,userInfo?userId
# POST /user/adressList
# userId=&page=1&size=10&auth=true
;adressList?userId&page=1&size=10
# GET /user/logout?args
logout?
vscode
"editor.tokenColorCustomizations": {
"comments": "#00ff00",
"textMateRules": [
{
"scope": "source.gapi to_file",
"settings": {
"foreground": "#c1f130",
"fontStyle": "bold underline"
}
},
{
"scope": "source.gapi prefix",
"settings": {
"foreground": "#60faf8",
"fontStyle": "bold"
}
},
{
"scope": "source.gapi comment",
"settings": {
"foreground": "#3ee0c3"
}
},
{
"scope": "source.gapi method",
"settings": {
"foreground": "#ff008a",
"fontStyle": "bold underline"
}
},
{
"scope": "source.gapi sep",
"settings": {
"foreground": "#f7d967"
}
},
{
"scope": "source.gapi arg",
"settings": {
"foreground": "#6aaff2"
}
},
{
"scope": "source.gapi value",
"settings": {
"foreground": "#eba4d2"
}
}
]
},