Skip to content

Commit dcee5ef

Browse files
committed
Bump version to 0.12.0
1 parent e433d89 commit dcee5ef

4 files changed

Lines changed: 33 additions & 28 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.12.0 (2016/1/15)
2+
* __Feature__: [Support custom environments and variables](https://github.com/Huachao/vscode-restclient/issues/56)
3+
* __Bug Fix__: [Fix line numbers overlap when response length > 99 lines long](https://github.com/Huachao/vscode-restclient/issues/58)
4+
* __Improvement__: Add scroll to top icon in response and code generation view
5+
16
## 0.11.4 (2017/1/4)
27
* __Bug Fix__: Fix extension publish issue
38

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ Environments and variables of `REST Client Extension` are defined in setting fil
200200
}
201201
}
202202
```
203-
A sample usage in `http` for above custom variables is listed below:
203+
A sample usage in `http` file for above custom variables is listed below:
204204
```http
205205
GET https://{{host}}/api/comments/1 HTTP/1.1
206206
Authorization: {{token}}
207207
```
208208

209209
### Custom Variables
210-
Custom variables belong to the environment scope. Each environment is a set of key value pairs defined in setting file, key is the variable name, while value is variable value. Only custom variables in selected environment are available to you. Current active environment name is displayed in the right bottom of `Visual Studio Code`, when you click it, you can switch environment, current active environment's name will be marked with a check sign in the end. And you can also switch environment using shortcut `Ctrl+Alt+E`(`Cmd+Alt+E` for macOS), or press `F1` and then select/type `Rest Client: Switch Environment`. When you write custom variables in `http` file, auto completion will be available to you, so when you have a variable named `host`, you don't need to type the full word `{{host}}` by yourself, simply type `host` or even less characters, it will prompt you the `host` variable as well as its actual value. After you select it, the value will be autocompleted with `{{host}}`. And if you hover on it, its value will also be displayed.
210+
Custom variables belong to the environment scope. Each environment is a set of key value pairs defined in setting file, key is the variable name, while value is variable value. Only custom variables in selected environment are available to you. Current active environment name is displayed in the right bottom of `Visual Studio Code`, when you click it, you can switch environment, current active environment's name will be marked with a check sign in the end. And you can also switch environment using shortcut `Ctrl+Alt+E`(`Cmd+Alt+E` for macOS), or press `F1` and then select/type `Rest Client: Switch Environment`. When you write custom variables in `http` file, auto completion will be available to you, so if you have a variable named `host`, you don't need to type the full word `{{host}}` by yourself, simply type `host` or even less characters, it will prompt you the `host` variable as well as its actual value. After you select it, the value will be autocompleted with `{{host}}`. And if you hover on it, its value will also be displayed.
211211

212212
### Global Variables
213213
Global variables provide a pre-defined set of variables that can be used in every part of the request(Url/Headers/Body) in the format `{{variableName}}`. Currently, we provide a few dynamic variables which you can use in your requests. The variable names are _case-sensitive_.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rest-client",
33
"displayName": "REST Client",
44
"description": "REST Client for Visual Studio Code",
5-
"version": "0.11.4",
5+
"version": "0.12.0",
66
"publisher": "humao",
77
"author": {
88
"name": "Huachao Mao",

‎styles/rest-client.css‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -125,46 +125,46 @@ code .line:before {
125125

126126
/* Copy from https://github.com/Microsoft/vscode-docs/blob/master/release-notes/css/inproduct_releasenotes.css */
127127
#scroll-to-top {
128-
position: fixed;
129-
width: 40px;
130-
height: 40px;
131-
right: 25px;
132-
bottom: 25px;
133-
background-color:#444444;
134-
border-radius: 50%;
135-
cursor: pointer;
136-
box-shadow: 1px 1px 1px rgba(0,0,0,.25);
128+
position: fixed;
129+
width: 40px;
130+
height: 40px;
131+
right: 25px;
132+
bottom: 25px;
133+
background-color:#444444;
134+
border-radius: 50%;
135+
cursor: pointer;
136+
box-shadow: 1px 1px 1px rgba(0,0,0,.25);
137137
}
138138

139139
#scroll-to-top:hover {
140-
background-color:#007acc;
141-
box-shadow: 2px 2px 2px rgba(0,0,0,.25);
140+
background-color:#007acc;
141+
box-shadow: 2px 2px 2px rgba(0,0,0,.25);
142142
}
143143

144144
/* Theme-specific colors */
145145
body.vscode-light #scroll-to-top {
146-
background-color: #949494;
146+
background-color: #949494;
147147
}
148148
body.vscode-light #scroll-to-top:hover {
149-
background-color: #007acc;
149+
background-color: #007acc;
150150
}
151151

152152
body.vscode-high-contrast #scroll-to-top {
153-
background-color: black;
154-
border: 2px solid #6fc3df;
155-
box-shadow: none;
153+
background-color: black;
154+
border: 2px solid #6fc3df;
155+
box-shadow: none;
156156
}
157157
body.vscode-high-contrast #scroll-to-top:hover {
158-
background-color: #007acc;
158+
background-color: #007acc;
159159
}
160160

161161
#scroll-to-top span.icon::before {
162-
content: "";
163-
/* Chevron up icon */
164-
background:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRkZGRkZGO30KCS5zdDF7ZmlsbDpub25lO30KPC9zdHlsZT4KPHRpdGxlPnVwY2hldnJvbjwvdGl0bGU+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04LDUuMWwtNy4zLDcuM0wwLDExLjZsOC04bDgsOGwtMC43LDAuN0w4LDUuMXoiLz4KPHJlY3QgY2xhc3M9InN0MSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ii8+Cjwvc3ZnPgo=');
165-
width: 1.6rem;
166-
height: 1.6rem;
167-
position:absolute;
168-
left: calc(50% - 1.6rem / 2);
169-
top: calc(50% - 1.6rem / 2);
162+
content: "";
163+
/* Chevron up icon */
164+
background:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRkZGRkZGO30KCS5zdDF7ZmlsbDpub25lO30KPC9zdHlsZT4KPHRpdGxlPnVwY2hldnJvbjwvdGl0bGU+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04LDUuMWwtNy4zLDcuM0wwLDExLjZsOC04bDgsOGwtMC43LDAuN0w4LDUuMXoiLz4KPHJlY3QgY2xhc3M9InN0MSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ii8+Cjwvc3ZnPgo=');
165+
width: 1.6rem;
166+
height: 1.6rem;
167+
position: absolute;
168+
left: calc(50% - 1.6rem / 2);
169+
top: calc(50% - 1.6rem / 2);
170170
}

0 commit comments

Comments
 (0)