File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,11 @@ export class PythonEnvironmentManagers implements EnvironmentManagers {
9999 this . _environmentManagers . set ( managerId , mgr ) ;
100100 this . _onDidChangeEnvironmentManager . fire ( { kind : 'registered' , manager : mgr } ) ;
101101
102- sendTelemetryEvent ( EventNames . ENVIRONMENT_MANAGER_REGISTERED , undefined , {
103- managerId,
104- } ) ;
102+ if ( ! managerId . toLowerCase ( ) . startsWith ( 'undefined_publisher.' ) ) {
103+ sendTelemetryEvent ( EventNames . ENVIRONMENT_MANAGER_REGISTERED , undefined , {
104+ managerId,
105+ } ) ;
106+ }
105107
106108 return new Disposable ( ( ) => {
107109 this . _environmentManagers . delete ( managerId ) ;
@@ -137,9 +139,11 @@ export class PythonEnvironmentManagers implements EnvironmentManagers {
137139 this . _packageManagers . set ( managerId , mgr ) ;
138140 this . _onDidChangePackageManager . fire ( { kind : 'registered' , manager : mgr } ) ;
139141
140- sendTelemetryEvent ( EventNames . PACKAGE_MANAGER_REGISTERED , undefined , {
141- managerId,
142- } ) ;
142+ if ( ! managerId . toLowerCase ( ) . startsWith ( 'undefined_publisher.' ) ) {
143+ sendTelemetryEvent ( EventNames . PACKAGE_MANAGER_REGISTERED , undefined , {
144+ managerId,
145+ } ) ;
146+ }
143147
144148 return new Disposable ( ( ) => {
145149 this . _packageManagers . delete ( managerId ) ;
You can’t perform that action at this time.
0 commit comments