Skip to content

Commit

Permalink
remove console logging (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger authored May 10, 2024
1 parent f248a6c commit 253ad75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { CellOutput } from './render';
import { ActivationFunction, OutputItem, RendererContext } from 'vscode-notebook-renderer';

export const activate: ActivationFunction = (ctx: RendererContext<unknown>) => {
console.log('Jupyter Notebook Renderer activated');
return {
renderOutputItem(outputItem: OutputItem, element: HTMLElement) {
renderOutput(outputItem, element, ctx);
Expand All @@ -39,9 +38,7 @@ function renderOutput(outputItem: OutputItem, element: HTMLElement, ctx: Rendere
if (!ctx.workspace.isTrusted) {
return;
}
console.log('request', outputItem);
const output = convertVSCodeOutputToExecuteResultOrDisplayData(outputItem);
console.log(`Rendering mimeType ${mimeString}`, output);

ReactDOM.render(
React.createElement(CellOutput, { mimeType: mimeString, output, ctx, outputId: outputItem.id }, null),
Expand Down
4 changes: 2 additions & 2 deletions src/extension/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export async function activate(context: ExtensionContext): Promise<{
editor
)
.then(
(fulfilled) => {
console.log('Sent to UI', fulfilled);
() => {
/* noop */
},
(ex) => console.error('Failed to send', ex)
);
Expand Down

0 comments on commit 253ad75

Please sign in to comment.