File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import * as rpc from 'vscode-jsonrpc/node';
4
4
import { Disposable , window } from 'vscode' ;
5
5
import { EXTENSION_ROOT_DIR } from '../constants' ;
6
6
import { traceError , traceLog } from '../logging' ;
7
+ import { captureTelemetry } from '../telemetry' ;
8
+ import { EventName } from '../telemetry/constants' ;
7
9
8
10
const SERVER_PATH = path . join ( EXTENSION_ROOT_DIR , 'python_files' , 'python_server.py' ) ;
9
11
let serverInstance : PythonServer | undefined ;
@@ -49,6 +51,7 @@ class PythonServerImpl implements Disposable {
49
51
} ) ;
50
52
}
51
53
54
+ @captureTelemetry ( EventName . EXECUTION_CODE , { scope : 'selection' } , false )
52
55
public execute ( code : string ) : Promise < string > {
53
56
return this . connection . sendRequest ( 'execute' , code ) ;
54
57
}
You can’t perform that action at this time.
0 commit comments