Skip to content

Commit fcd266b

Browse files
committed
Log 0 for count telementries not undefined
1 parent 2ce576d commit fcd266b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/vs/workbench/electron-browser/shell.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ export class WorkbenchShell {
225225
userAgent: navigator.userAgent,
226226
windowSize: { innerHeight: window.innerHeight, innerWidth: window.innerWidth, outerHeight: window.outerHeight, outerWidth: window.outerWidth },
227227
emptyWorkbench: this.contextService.getWorkbenchState() === WorkbenchState.EMPTY,
228-
'workbench.filesToOpen': filesToOpen && filesToOpen.length || void 0,
229-
'workbench.filesToCreate': filesToCreate && filesToCreate.length || void 0,
230-
'workbench.filesToDiff': filesToDiff && filesToDiff.length || void 0,
228+
'workbench.filesToOpen': filesToOpen && filesToOpen.length || 0,
229+
'workbench.filesToCreate': filesToCreate && filesToCreate.length || 0,
230+
'workbench.filesToDiff': filesToDiff && filesToDiff.length || 0,
231231
customKeybindingsCount: info.customKeybindingsCount,
232232
theme: this.themeService.getColorTheme().id,
233233
language: platform.language,

src/vs/workbench/services/telemetry/common/workspaceStats.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ export class WorkspaceStats {
176176
const tags: Tags = Object.create(null);
177177

178178
const { filesToOpen, filesToCreate, filesToDiff } = configuration;
179-
tags['workbench.filesToOpen'] = filesToOpen && filesToOpen.length || undefined;
180-
tags['workbench.filesToCreate'] = filesToCreate && filesToCreate.length || undefined;
181-
tags['workbench.filesToDiff'] = filesToDiff && filesToDiff.length || undefined;
179+
tags['workbench.filesToOpen'] = filesToOpen && filesToOpen.length || 0;
180+
tags['workbench.filesToCreate'] = filesToCreate && filesToCreate.length || 0;
181+
tags['workbench.filesToDiff'] = filesToDiff && filesToDiff.length || 0;
182182

183183
const isEmpty = this.contextService.getWorkbenchState() === WorkbenchState.EMPTY;
184184
const workspace = this.contextService.getWorkspace();

0 commit comments

Comments
 (0)