Skip to content

Commit

Permalink
remove for browser
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Dec 17, 2024
1 parent 3bd24a6 commit 2021b69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/browser/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { EventName } from '../telemetry/constants';
import { createStatusItem } from './intellisenseStatus';
import { PylanceApi } from '../activation/node/pylanceApi';
import { buildApi, IBrowserExtensionApi } from './api';
import { traceError, traceLog } from '../logging';

interface BrowserConfig {
distUrl: string; // URL to Pylance's dist folder.
Expand Down Expand Up @@ -140,7 +139,7 @@ async function runPylance(

await client.start();
} catch (e) {
traceLog(e);
console.log(e); // necessary to use console.log for browser
}
}

Expand Down Expand Up @@ -201,7 +200,7 @@ function sendTelemetryEventBrowser(
break;
}
} catch (exception) {
traceError(`Failed to serialize ${prop} for ${eventName}`, exception);
console.error(`Failed to serialize ${prop} for ${eventName}`, exception); // necessary to use console.log for browser
}
});
}
Expand Down

0 comments on commit 2021b69

Please sign in to comment.