metakirby5 / codi.vim

:notebook_with_decorative_cover: The interactive scratchpad for hackers.
MIT License
3.02k stars 83 forks source link

Wierd Behaviour: Codi logging Property Assignment #140

Closed cat903 closed 3 years ago

cat903 commented 3 years ago

I am running Codi from vim Command Mode

e.g: :Codi javascript

let spaceship = {color:true};
console.log(spaceship);
spaceship.fuelEmpty = true;
console.log(spaceship);

codioutputs

Why codi logging property assignment on line 2 , any way to disable This Behaviour?

metakirby5 commented 3 years ago

node itself outputs true, since that is the result of the expression. Read the output specification section of the documentation for more details. What node decides to output is out of my hands.

image

You can add a preprocess if you want, but it's against the spirit of Codi and will be a lot of work for not much gain.