File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import { JupyterCodeLensProvider } from './editorIntegration/codeLensProvider';
88import { JupyterSymbolProvider } from './editorIntegration/symbolProvider' ;
99import { formatErrorForLogging } from '../common/utils' ;
1010import { Documentation } from '../common/constants' ;
11- import * as telemetryHelper from '../common/telemetry' ;
12- import * as telemetryContracts from '../common/telemetryContracts' ;
11+ // import * as telemetryHelper from '../common/telemetry';
12+ // import * as telemetryContracts from '../common/telemetryContracts';
1313import * as main from './jupyter_client/main' ;
1414import { KernelRestartedError , KernelShutdownError } from './common/errors' ;
1515import { PythonSettings } from '../common/configSettings' ;
@@ -107,10 +107,7 @@ export class Jupyter extends vscode.Disposable {
107107 this . status . setActiveKernel ( this . kernel ? this . kernel . kernelSpec : null ) ;
108108 }
109109 executeCode ( code : string , language : string ) : Promise < any > {
110- // const m = new main.JupyterClient(this.outputChannel);
111- // m.start();
112- // return Promise.resolve();
113- telemetryHelper . sendTelemetryEvent ( telemetryContracts . Jupyter . Usage ) ;
110+ // telemetryHelper.sendTelemetryEvent(telemetryContracts.Jupyter.Usage);
114111
115112 if ( this . kernel && this . kernel . kernelSpec . language === language ) {
116113 return this . executeAndDisplay ( this . kernel , code ) . catch ( reason => {
Original file line number Diff line number Diff line change @@ -282,8 +282,8 @@ function spawnProcess(dir: string) {
282282 commandQueue . splice ( index , 1 ) ;
283283
284284 if ( cmd . delays && typeof cmd . telemetryEvent === 'string' ) {
285- cmd . delays . stop ( ) ;
286- telemetryHelper . sendTelemetryEvent ( cmd . telemetryEvent , null , cmd . delays . toMeasures ( ) ) ;
285+ // cmd.delays.stop();
286+ // telemetryHelper.sendTelemetryEvent(cmd.telemetryEvent, null, cmd.delays.toMeasures());
287287 }
288288
289289 // Check if this command has expired
@@ -442,9 +442,9 @@ function sendCommand<T extends ICommandResult>(cmd: ICommand<T>): Promise<T> {
442442 var executionCmd = < IExecutionCommand < T > > cmd ;
443443 var payload = createPayload ( executionCmd ) ;
444444 executionCmd . deferred = createDeferred < ICommandResult > ( ) ;
445- if ( typeof executionCmd . telemetryEvent === 'string' ) {
446- executionCmd . delays = new telemetryHelper . Delays ( ) ;
447- }
445+ // if (typeof executionCmd.telemetryEvent === 'string') {
446+ // executionCmd.delays = new telemetryHelper.Delays();
447+ // }
448448 try {
449449 proc . stdin . write ( JSON . stringify ( payload ) + "\n" ) ;
450450 commands . set ( executionCmd . id , executionCmd ) ;
You can’t perform that action at this time.
0 commit comments