Skip to content

Commit

Permalink
fix: resolve call (#6006)
Browse files Browse the repository at this point in the history
* chore: dummy

* fix: parameter

* fix: parameter
  • Loading branch information
mingxuanzhangsfdx authored Jan 14, 2025
1 parent eedf900 commit b8308c1
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
/* eslint-disable prettier/prettier */
'use strict';

import { TelemetryReporter } from '@salesforce/vscode-service-provider';
Expand Down Expand Up @@ -31,13 +32,13 @@ export class LogStream extends Disposable implements TelemetryReporter {
encoding: 'utf8',
autoClose: true
});
this.toDispose.push(workspace.onDidChangeConfiguration(() => () => {}));
this.toDispose.push(workspace.onDidChangeConfiguration(() => () => { }));
console.log(
'VS Code telemetry event logging enabled for: ' +
this.extensionId +
'. Telemetry events will be written via write stream to a file at: ' +
this.logFilePath +
'.'
this.extensionId +
'. Telemetry events will be written via write stream to a file at: ' +
this.logFilePath +
'.'
);
}

Expand Down Expand Up @@ -87,7 +88,7 @@ export class LogStream extends Disposable implements TelemetryReporter {
if (!this.stream) {
return resolve(void 0);
}

Check failure on line 90 in packages/salesforcedx-utils-vscode/src/telemetry/reporters/logStream.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / linux-unit-tests / linux-unit-tests

Argument of type '(value: any) => void' is not assignable to parameter of type '() => void'.

Check failure on line 90 in packages/salesforcedx-utils-vscode/src/telemetry/reporters/logStream.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / build-all / build-all

Argument of type '(value: any) => void' is not assignable to parameter of type '() => void'.

Check failure on line 90 in packages/salesforcedx-utils-vscode/src/telemetry/reporters/logStream.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / windows-unit-tests / windows-unit-tests

Argument of type '(value: any) => void' is not assignable to parameter of type '() => void'.

Check failure on line 90 in packages/salesforcedx-utils-vscode/src/telemetry/reporters/logStream.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / build-all / build-all

Argument of type '(value: any) => void' is not assignable to parameter of type '() => void'.

Check failure on line 90 in packages/salesforcedx-utils-vscode/src/telemetry/reporters/logStream.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / linux-unit-tests / linux-unit-tests

Argument of type '(value: any) => void' is not assignable to parameter of type '() => void'.

Check failure on line 90 in packages/salesforcedx-utils-vscode/src/telemetry/reporters/logStream.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / windows-unit-tests / windows-unit-tests

Argument of type '(value: any) => void' is not assignable to parameter of type '() => void'.
this.stream.on('finish', resolve);
this.stream.on('finish', () => resolve(void 0));
this.stream.end();
});

Expand Down

0 comments on commit b8308c1

Please sign in to comment.