Skip to content

Commit 66b8c0b

Browse files
anthonykim1DonJayamanne
authored andcommitted
Add missing telemetry for REPL (#23591)
add missing telemetry for REPL that should have been attached Resolves: #23590
1 parent 83c69a0 commit 66b8c0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/repl/pythonServer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import * as rpc from 'vscode-jsonrpc/node';
44
import { Disposable, window } from 'vscode';
55
import { EXTENSION_ROOT_DIR } from '../constants';
66
import { traceError, traceLog } from '../logging';
7+
import { captureTelemetry } from '../telemetry';
8+
import { EventName } from '../telemetry/constants';
79

810
const SERVER_PATH = path.join(EXTENSION_ROOT_DIR, 'python_files', 'python_server.py');
911
let serverInstance: PythonServer | undefined;
@@ -49,6 +51,7 @@ class PythonServerImpl implements Disposable {
4951
});
5052
}
5153

54+
@captureTelemetry(EventName.EXECUTION_CODE, { scope: 'selection' }, false)
5255
public execute(code: string): Promise<string> {
5356
return this.connection.sendRequest('execute', code);
5457
}

0 commit comments

Comments
 (0)