lostintangent / codeswing

VS Code extension for building web applications ("swings") using a interactive and editor-integrated coding environment
https://aka.ms/codeswing
MIT License
977 stars 46 forks source link

In the console, output of variables doesn't appear #58

Closed ItalyPaleAle closed 2 years ago

ItalyPaleAle commented 2 years ago

Create a JS Swing and type the code below:

const test = 'aaa'
console.log('test', test)

In the browser's dev tools, it shows test aaa but in CodeSwing's output, it only shows test.

This happens in VS Code for the Web (vscode.dev/github.dev)

lostintangent commented 2 years ago

CodeSwing monkey patches "console.log" and I don't think it currently implements the multi-argument format. But they should be pretty straight forward to add! I'll take a look tomorrow 👍