tijlleenders / ZinZen-scheduler

The calendar engine for the ZinZen web app.
https://github.com/tijlleenders/ZinZen
GNU Affero General Public License v3.0
10 stars 4 forks source link

Remove need for scheduler to format expected output #430

Closed tijlleenders closed 9 months ago

tijlleenders commented 10 months ago

Is your feature request related to a problem? Please describe. Right now, we're using the formatter of the scheduler to make the expected.json format match the formatter we use from serde on the observed.json.
This is a problem for two reasons:

Describe the solution you'd like Find the formatting command outside of the scheduler that will match the serde formatter we use
or
Find a serde formatter that matches the formatter we use from the IDE (preferred)

Describe alternatives you've considered Leave it be... It will cost a lot of extra time and confusion. Let's just do it proper.

Additional context None.

tijlleenders commented 9 months ago

At the bottom of the VSCode editor on the right hand click "Spaces: #":

Image

Then a menu will appear up top. Select "Indent Using Spaces":

Image

Finally you can select by how many spaces you want your files to be indented (we use 2).

Image

The next time you format an expected.json file you should be able to get the spacing you configured.