From 5b8a4910ac7cfaa58817dd51ab795131299f0374 Mon Sep 17 00:00:00 2001 From: Alena Khineika Date: Tue, 20 Jun 2023 12:27:28 +0200 Subject: [PATCH] fix: disable playground loaded event VSCODE-432 --- src/editors/playgroundController.ts | 6 ++++-- src/test/suite/telemetry/telemetryService.test.ts | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/editors/playgroundController.ts b/src/editors/playgroundController.ts index 51dbab355..6d7143ed4 100644 --- a/src/editors/playgroundController.ts +++ b/src/editors/playgroundController.ts @@ -191,9 +191,11 @@ export default class PlaygroundController { vscode.workspace.onDidOpenTextDocument(async (document) => { if (isPlayground(document.uri)) { - this._telemetryService.trackPlaygroundLoaded( + // TODO: re-enable with fewer 'Playground Loaded' events + // https://jira.mongodb.org/browse/VSCODE-432 + /* this._telemetryService.trackPlaygroundLoaded( getPlaygroundExtensionForTelemetry(document.uri) - ); + ); */ await vscode.languages.setTextDocumentLanguage(document, 'javascript'); } }); diff --git a/src/test/suite/telemetry/telemetryService.test.ts b/src/test/suite/telemetry/telemetryService.test.ts index 0c5517266..e9e5faaca 100644 --- a/src/test/suite/telemetry/telemetryService.test.ts +++ b/src/test/suite/telemetry/telemetryService.test.ts @@ -247,7 +247,8 @@ suite('Telemetry Controller Test Suite', () => { ); }); - test('track mongodb playground loaded event', async () => { + // TODO: re-enable two tests after https://jira.mongodb.org/browse/VSCODE-432 + test.skip('track mongodb playground loaded event', async () => { const docPath = path.resolve( __dirname, '../../../../src/test/fixture/testSaving.mongodb' @@ -266,7 +267,7 @@ suite('Telemetry Controller Test Suite', () => { ); }); - test('track mongodbjs playground loaded event', async () => { + test.skip('track mongodbjs playground loaded event', async () => { const docPath = path.resolve( __dirname, '../../../../src/test/fixture/testSaving.mongodb.js'