question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format of generated config file conflicts with what `deno fmt` prefers

See original GitHub issue

On initializing, the plugin generates a config JSON file with 4-space indent, but it conflicts with deno fmt since it prefers 2-space indent. It is a kind of annoying that running deno fmt formats .vscode/settings.json just after it’s generated. It would be better if we could make the plugin generate a JSON file whose format deno fmt likes.

However, from my quick browse, unfortunately it seems like the VSCode Extension API doesn’t provide a way of configuring the indent size of config files. https://code.visualstudio.com/api/references/vscode-api#WorkspaceConfiguration

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kitsonkcommented, Aug 21, 2021

I suspect some people would want to deno fmt the file, right?

0reactions
kitsonkcommented, Aug 21, 2021

Moved the issue to deno then. 🤷

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code Formatter - deno fmt
Deno ships with a built-in code formatter that will auto-format the following files:
Read more >
Support additional deno fmt options · Issue #660 - GitHub
deno fmt has some nice options which are not possible to set with vscode_deno plugin in settings.json . For most wanted are:
Read more >
Formatting code with config files in Deno | The JS runtimes
Learn how to use config files to control code formatting with Deno.
Read more >
Utilities Error Messages - Software AG Documentation
The value of item FORMAT is either invalid or missing in the configuration file, which is assigned via the item AUDIT_FILE.
Read more >
Deno 1.14 - Hacker News
I tried out Deno last weekend for a fun little hack project (syncing a local Markdown file to a formatted Google Doc), and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found