File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { EventName } from '../telemetry/constants';
1212import { createStatusItem } from './intellisenseStatus' ;
1313import { PylanceApi } from '../activation/node/pylanceApi' ;
1414import { buildApi , IBrowserExtensionApi } from './api' ;
15- import { traceError , traceLog } from '../logging' ;
1615
1716interface BrowserConfig {
1817 distUrl : string ; // URL to Pylance's dist folder.
@@ -140,7 +139,7 @@ async function runPylance(
140139
141140 await client . start ( ) ;
142141 } catch ( e ) {
143- traceLog ( e ) ;
142+ console . log ( e ) ; // necessary to use console.log for browser
144143 }
145144}
146145
@@ -201,7 +200,7 @@ function sendTelemetryEventBrowser(
201200 break ;
202201 }
203202 } catch ( exception ) {
204- traceError ( `Failed to serialize ${ prop } for ${ eventName } ` , exception ) ;
203+ console . error ( `Failed to serialize ${ prop } for ${ eventName } ` , exception ) ; // necessary to use console.log for browser
205204 }
206205 } ) ;
207206 }
You can’t perform that action at this time.
0 commit comments