-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format of generated config file conflicts with what deno fmt
prefers
#498
Comments
Correct, I don't think there is anything we can do about it, we don't actually write a file, we simply access APIs that persist the data as vscode sees fit. So I am going to close this as a design limitation. |
Could we hardcode into deno fmt to not format |
I suspect some people would want to |
Maybe we'd allow it if someone does |
Opened a suggestion in |
Why in deno_lint? Shouldn't it be in deno/cli/tools/fmt.rs ? |
The predicate we use is in Maybe we should just filter dotfiles in general rather than start maintaining a potentially ever growing list special cases? |
Moved the issue to deno then. 🤷 |
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 runningdeno 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
The text was updated successfully, but these errors were encountered: