Skip to content

Commit b33290b

Browse files
committed
up version to 0.22.3
Signed-off-by: Yan Zhang <[email protected]>
1 parent 80ecfb4 commit b33290b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.22.3
4+
### Changed
5+
- Use new setting `java.help.collectErrorLog` to control whether to collect detailed diagnostic information.
6+
37
## 0.22.2
48
### Fixed
59
- Improve colletion of diagnostic information.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Extension Pack for Java",
44
"description": "Popular extensions for Java development that provides Java IntelliSense, debugging, testing, Maven/Gradle support, project management and more",
55
"license": "MIT",
6-
"version": "0.22.2",
6+
"version": "0.22.3",
77
"publisher": "vscjava",
88
"preview": true,
99
"engines": {
@@ -219,7 +219,7 @@
219219
"description": "Show release notes of Extension Pack for Java on startup.",
220220
"scope": "window"
221221
},
222-
"java.help.shareDiagnostics": {
222+
"java.help.collectErrorLog": {
223223
"type": "boolean",
224224
"default": false,
225225
"description": "Whether to send back detailed information from error logs for diagnostic purpose.",

src/daemon/serverLog/logWatcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class LogWatcher {
4545
if (Date.now() - this.logProcessedTimestamp < 1000) { return; } // reduce frequency of log file I/O.
4646
const logs = await logsForLatestSession(e.fsPath);
4747
const errors = collectErrorsSince(logs, this.logProcessedTimestamp);
48-
const consentToCollectLogs = vscode.workspace.getConfiguration("java").get<boolean>("help.shareDiagnostics");
48+
const consentToCollectLogs = vscode.workspace.getConfiguration("java").get<boolean>("help.collectErrorLog");
4949
if (errors) {
5050
errors.forEach(e => {
5151
consentToCollectLogs ? sendInfo("", {
@@ -97,7 +97,7 @@ export class LogWatcher {
9797
if (this.serverLogUri) {
9898
const logs = await logsForLatestSession(path.join(this.serverLogUri?.fsPath, ".log"));
9999
const errors = collectErrors(logs);
100-
const consentToCollectLogs = vscode.workspace.getConfiguration("java").get<boolean>("help.shareDiagnostics");
100+
const consentToCollectLogs = vscode.workspace.getConfiguration("java").get<boolean>("help.collectErrorLog");
101101
if (errors) {
102102
errors.forEach(e => {
103103
consentToCollectLogs ? sendInfo("", {

0 commit comments

Comments
 (0)