vscode

Quiet in here? Check #calva-dev out :smiley:
pez 2018-06-06T15:51:30.000640Z

Trying to bring some sanity back to which extension is formatting the code we have just released calva-fmt and removed some of Calva’s formatting. Calva is now dependent on calva-fmt which will get installed when you update to latest Calva. This is work in progress and you can expect calva-fmt to take care of some more of the formatting Calva is doing today. Calva Paredit will probably also start to depend on calva-fmt instead of doing its own formatting. https://marketplace.visualstudio.com/items?itemName=cospaia.calva-fmt

👍 1
mattly 2018-06-06T16:12:13.000322Z

any idea how it plays with parinfer?

mattly 2018-06-06T16:12:44.000918Z

I took a break from emacs yesterday to kick the tires on VSCode again, formatting was by far and away my biggest frustration

mattly 2018-06-06T16:13:00.000581Z

I tried various modes of disabling calva & parinfer and couldn’t get it right

mattly 2018-06-06T16:13:11.000750Z

but I’ve come to realize I can’t live without parinfer anymore

pez 2018-06-06T17:51:43.000152Z

calva-fmt plays nicely with Parinfer.

pez 2018-06-06T17:54:44.000311Z

However, there is still a conflict to be resolved there. Calva has a feature where it tries to help place the cursor in the right position for new lines entered. We call it Auto Adjust Indent (AAI). It does not play well together with the indent mode of Parinfer. But you can easily disable AAI in Calva and let Parinfer do its magic.

pez 2018-06-06T17:57:16.000383Z

We are pondering how to fix this going forward, We will try to work together with the Parinfer author to see if we can find a way for all this formatting stuff to be less of a mess. That is partly the reason why we published calva-fmt as a separate extension.

mattly 2018-06-06T18:01:10.000216Z

parinfer for vscode isn’t being maintained anymore tho

pez 2018-06-06T18:07:21.000153Z

Officially?

pez 2018-06-06T18:39:23.000009Z

Yes, I’ve seen that, now that you remind me. Anyway, we are trying to connect and I think we should be able to find a way to maintain it. Parinfer is way to awesome to not be maintained for vscode.

mattly 2018-06-06T18:41:53.000805Z

I saw that in #parinfer

mattly 2018-06-06T18:42:16.000544Z

If I were more sold on vscode and had the time I’d be interested but I definitely do not have the time right now

pez 2018-06-06T18:57:28.000838Z

Here’s hoping you will have some time later on as well as getting more sold on vscode. 😃