Skip to content

Commit 51326d9

Browse files
fix: disable playground loaded event VSCODE-432 (#545)
1 parent 07ea8b4 commit 51326d9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/editors/playgroundController.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ export default class PlaygroundController {
191191

192192
vscode.workspace.onDidOpenTextDocument(async (document) => {
193193
if (isPlayground(document.uri)) {
194-
this._telemetryService.trackPlaygroundLoaded(
194+
// TODO: re-enable with fewer 'Playground Loaded' events
195+
// https://jira.mongodb.org/browse/VSCODE-432
196+
/* this._telemetryService.trackPlaygroundLoaded(
195197
getPlaygroundExtensionForTelemetry(document.uri)
196-
);
198+
); */
197199
await vscode.languages.setTextDocumentLanguage(document, 'javascript');
198200
}
199201
});

src/test/suite/telemetry/telemetryService.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ suite('Telemetry Controller Test Suite', () => {
247247
);
248248
});
249249

250-
test('track mongodb playground loaded event', async () => {
250+
// TODO: re-enable two tests after https://jira.mongodb.org/browse/VSCODE-432
251+
test.skip('track mongodb playground loaded event', async () => {
251252
const docPath = path.resolve(
252253
__dirname,
253254
'../../../../src/test/fixture/testSaving.mongodb'
@@ -266,7 +267,7 @@ suite('Telemetry Controller Test Suite', () => {
266267
);
267268
});
268269

269-
test('track mongodbjs playground loaded event', async () => {
270+
test.skip('track mongodbjs playground loaded event', async () => {
270271
const docPath = path.resolve(
271272
__dirname,
272273
'../../../../src/test/fixture/testSaving.mongodb.js'

0 commit comments

Comments
 (0)