提交 bf0fc83e 编写于 作者: I isidor

fixes #6097

上级 ef28669e
......@@ -289,7 +289,8 @@ export class DebugService implements debug.IDebugService {
this.toDisposeOnSessionEnd.push(this.session.onDidOutput(event => {
if (event.body && event.body.category === 'telemetry') {
// only log telemetry events from debug adapter if the adapter provided the telemetry key
if (this.telemetryAdapter) {
// and the user opted in telemetry
if (this.telemetryAdapter && this.telemetryService.isOptedIn) {
this.telemetryAdapter.log(event.body.output, event.body.data);
}
} else if (event.body && typeof event.body.output === 'string' && event.body.output.length > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册