Skip to content

Commit e7eaf1b

Browse files
committed
Set telemetry error message for unexpected exceptions
Signed-off-by: Denis Golovin [email protected]
1 parent 8227ca0 commit e7eaf1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vscommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export async function registerCommands(...modules: string[]): Promise<Disposable
7070
// TODO: Wrap view title commands in try/catch and re-throw as VsCommandError
7171
// TODO: telemetry cannot send not known exception stacktrace or message
7272
// because it can contain user's sensitive information
73+
telemetryProps.error = 'Unexpected error';
7374
throw err;
7475
}
7576
} finally {
@@ -95,4 +96,4 @@ export function vsCommand(commandId: string, palette = false): Function {
9596
vsCommands.push({ commandId: `${commandId}.palette`, key, method: descriptor.value });
9697
}
9798
};
98-
}
99+
}

0 commit comments

Comments
 (0)