Skip to content

Commit

Permalink
Disable telemetry by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Huachao committed May 11, 2024
1 parent 080fa63 commit 1fa7940
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"sourceMaps": true,
"smartStep": true,
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ],
"preLaunchTask": "npm: watch",
"preLaunchTask": "npm: webpack",
"trace": true
}
]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ exchange | Preview the whole HTTP exchange(request and response)
* `rest-client.showResponseInDifferentTab`: Show response in different tab. (Default is __false__)
* `rest-client.requestNameAsResponseTabTitle`: Show request name as the response tab title. Only valid when using html view, if no request name is specified defaults to "Response". (Default is __false__)
* `rest-client.rememberCookiesForSubsequentRequests`: Save cookies from `Set-Cookie` header in response and use for subsequent requests. (Default is __true__)
* `rest-client.enableTelemetry`: Send out anonymous usage data. (Default is __true__)
* `rest-client.enableTelemetry`: Send out anonymous usage data. (Default is __false__)
* `rest-client.excludeHostsForProxy`: Excluded hosts when using proxy settings. (Default is __[]__)
* `rest-client.fontSize`: Controls the font size in pixels used in the response preview. (Default is __13__)
* `rest-client.fontFamily`: Controls the font family used in the response preview. (Default is __Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback"__)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
},
"rest-client.enableTelemetry": {
"type": "boolean",
"default": true,
"default": false,
"scope": "resource",
"description": "Send out anonymous usage data"
},
Expand Down
2 changes: 1 addition & 1 deletion src/models/configurationSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class SystemSettings implements IRestClientSettings {
this._largeResponseBodySizeLimitInMB = restClientSettings.get<number>("largeResponseBodySizeLimitInMB", 5);
this._previewOption = ParsePreviewOptionStr(restClientSettings.get<string>("previewOption", "full"));
this._formParamEncodingStrategy = ParseFormParamEncodingStr(restClientSettings.get<string>("formParamEncodingStrategy", "automatic"));
this._enableTelemetry = restClientSettings.get<boolean>('enableTelemetry', true);
this._enableTelemetry = restClientSettings.get<boolean>('enableTelemetry', false);
this._suppressResponseBodyContentTypeValidationWarning = restClientSettings.get('suppressResponseBodyContentTypeValidationWarning', false);
this._addRequestBodyLineIndentationAroundBrackets = restClientSettings.get<boolean>('addRequestBodyLineIndentationAroundBrackets', true);
this._decodeEscapedUnicodeCharacters = restClientSettings.get<boolean>('decodeEscapedUnicodeCharacters', false);
Expand Down

0 comments on commit 1fa7940

Please sign in to comment.