Skip to content

Commit 298db3b

Browse files
committed
Bump version to 0.19.0
1 parent f1c9b2a commit 298db3b

8 files changed

Lines changed: 21 additions & 15 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.19.0 (2018/6/28)
2+
* __Breaking Change__: Remove support for setting `rest-client.defaultuseragent`, replace this with `rest-client.defaultHeaders` which has more capability to add other default request headers
3+
* __Breaking Change__: Remove support for setting `rest-client.previewResponseInActiveColumn`, replace this with `rest-client.previewColumn` which has more capability to specify which column to preview, not just currently active one
4+
* __Feature__: [Add support for default headers](https://github.com/Huachao/vscode-restclient/pull/206) ([@Kronuz](https://github.com/Kronuz))
5+
* __Feature__: [Show response preview in right editor](https://github.com/Huachao/vscode-restclient/issues/216)
6+
* __Feature__: [Preserve focus of the http editor](https://github.com/Huachao/vscode-restclient/issues/167)
7+
* __Bug Fix__: [Setting: 'previewOption' does not work in combination with 'previewResponseInUntitledDocument'](https://github.com/Huachao/vscode-restclient/issues/183)
8+
* __Bug Fix__: Fix Chinese encoding not copied to clipboard
9+
* __Improvement__: [Retina icon](https://github.com/Huachao/vscode-restclient/pull/217) ([@pluwen](https://github.com/pluwen))
10+
* __Improvement__: Add http language default configuration `editor.quickSuggestions`
11+
* __Improvement__: Refactor resolving http variables logic
12+
* __Improvement__: Leverage new Webview API to render response and code snippet
13+
114
## 0.18.4 (2018/5/4)
215
* __Feature__: [Open a saving dialogue when saving response and response body](https://github.com/Huachao/vscode-restclient/issues/186)
316
* __Bug Fix__: [Do not empty rulesets](https://github.com/Huachao/vscode-restclient/pull/203) ([@mtxr](https://github.com/mtxr))

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Environments give you the ability to customize requests using variables, and you
321321
Environments and including variables are defined directly in `Visual Studio Code` setting file, so you can create/update/delete environments and variables at any time you wish. If you __DO NOT__ want to use any environment, you can choose `No Environment` in the environment list. Notice that if you select `No Environment`, variables defined in shared environment are still available. See [Environment Variables](#environment-variables) for more details about environment variables.
322322

323323
## Variables
324-
We support two types of variables, one is __Custom Variables__ which is defined by user and can be further divided into __Environment Variables__, __File Variables__ and __Request Variables__, the other is __System Variables__ which is a predefined set of variables out-of-box.
324+
We support two types of variables, one is __Custom Variables__ which is defined by user and can be further divided into __Environment Variables__, __File Variables__ and __Request Variables__, the other is __System Variables__ which is a predefined set of variables out-of-box.
325325

326326
The reference syntax of system and custom variables types has a subtle difference, for the former the syntax is `{{$SystemVariableName}}`, while for the latter the syntax is `{{CustomVariableName}}`, without preceding `$` before variable name. The definition syntax and location for different types of custom variables are obviously different. Notice that when the same name used for custom variable, request variables takes higher resolving precedence over file variables, file variables takes higher precedence over environment variables.
327327

@@ -504,7 +504,8 @@ exchange | Preview the whole HTTP exchange(request and response)
504504
* `rest-client.disableHighlightResonseBodyForLargeResponse`: Controls whether to highlight response body for response whose size is larger than limit specified by `rest-client.largeResponseSizeLimitInMB`. (Default is __true__)
505505
* `rest-client.disableAddingHrefLinkForLargeResponse`: Controls whether to add href link in previewed response for response whose size is larger than limit specified by `rest-client.largeResponseSizeLimitInMB`. (Default is __true__)
506506
* `rest-client.largeResponseBodySizeLimitInMB`: Set the response body size threshold of MB to identify whether a response is a so-called 'large response', only used when `rest-client.disableHighlightResonseBodyForLargeResponse` and/or `rest-client.disableAddingHrefLinkForLargeResponse` is set to true. (Default is __5__)
507-
* `rest-client.previewResponseInActiveColumn`: Preview response in current active column. (Default is __false__)
507+
* `rest-client.previewColumn`: Response preview column option. 'left' for previewing in the left most editor column. 'center' for previewing in the center editor column(three columns layout) or right most editor column(two columns layout). 'right' for previewing in the right most editor column. 'current' for previewing in the column of current request file. (Default is __center__)
508+
* `rest-client.previewResponsePanelTakeFocus`: Preview response panel will take focus after receiving response. (Default is __True__)
508509

509510
Rest Client extension respects the proxy settings made for Visual Studio Code (`http.proxy` and `http.proxyStrictSSL`). Only HTTP and HTTPS proxies are supported.
510511

‎package.json‎

Lines changed: 2 additions & 8 deletions
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.18.4",
5+
"version": "0.19.0",
66
"publisher": "humao",
77
"author": {
88
"name": "Huachao Mao",
@@ -478,12 +478,6 @@
478478
"scope": "resource",
479479
"description": "Set the response body size threshold of MB to identify whether a response is a so-called 'large response', only used when 'rest-client.disableHighlightResonseBodyForLargeResponse' and/or 'rest-client.disableAddingHrefLinkForLargeResponse' is set to true"
480480
},
481-
"rest-client.previewResponseInActiveColumn": {
482-
"type": "boolean",
483-
"default": false,
484-
"scope": "resource",
485-
"description": "Preview response in current active column"
486-
},
487481
"rest-client.previewColumn": {
488482
"type": "string",
489483
"enum": [
@@ -494,7 +488,7 @@
494488
],
495489
"default": "center",
496490
"scope": "resource",
497-
"description": "Response preview column option. 'left' for previewing in the left most editor column. 'center' for previewing in the center editor column. 'right' for previewing in the right most editor column. 'current' for previewing in the column of current request file."
491+
"description": "Response preview column option. 'left' for previewing in the left most editor column. 'center' for previewing in the center editor column(three columns layout) or right most editor column(two columns layout). 'right' for previewing in the right most editor column. 'current' for previewing in the column of current request file."
498492
},
499493
"rest-client.previewResponsePanelTakeFocus": {
500494
"type": "boolean",

‎src/controllers/historyController.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export class HistoryController {
9999

100100
private errorHandler(error: any) {
101101
this._outputChannel.appendLine(error);
102-
this._outputChannel.show();
103102
window.showErrorMessage("There was an error, please view details in output log");
104103
}
105104

‎src/controllers/requestController.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ export class RequestController {
157157
} catch (reason) {
158158
this._outputChannel.appendLine(reason);
159159
this._outputChannel.appendLine(reason.stack);
160-
this._outputChannel.show();
161160
window.showErrorMessage(reason);
162161
}
163162

@@ -181,7 +180,6 @@ export class RequestController {
181180
this._durationStatusBarItem.text = '';
182181
this._outputChannel.appendLine(error);
183182
this._outputChannel.appendLine(error.stack);
184-
this._outputChannel.show();
185183
window.showErrorMessage(error.message);
186184
} finally {
187185
this._requestStore.complete(<string>requestId);

‎src/utils/httpVariableProvider/systemVariableProvider.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export class SystemVariableProvider implements HttpVariableProvider {
184184
} else {
185185
resolveToken(cachedToken, false);
186186
}
187+
return;
187188
}
188189

189190
acquireToken();

‎src/utils/variableProcessor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class VariableProcessor {
2626
while (match = variableRefercenceRegex.exec(request)) {
2727
result += request.substring(lastIndex, match.index);
2828
lastIndex = variableRefercenceRegex.lastIndex;
29-
const name = match[1];
29+
const name = match[1].trim();
3030
const document = window.activeTextEditor.document;
3131
const context = { rawRequest: request, parsedRequest: result };
3232
for (const provider of VariableProcessor.providers) {

‎src/views/httpResponseWebview.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class HttpResponseWebview extends BaseWebview {
7575

7676
panel.webview.html = this.getHtmlForWebview(response);
7777

78-
commands.executeCommand('setContext', this.httpResponsePreviewActiveContextKey, true);
78+
commands.executeCommand('setContext', this.httpResponsePreviewActiveContextKey, this.settings.previewResponsePanelTakeFocus);
7979

8080
panel.reveal(this.settings.previewColumn, !this.settings.previewResponsePanelTakeFocus);
8181

0 commit comments

Comments
 (0)