denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.5k stars 146 forks source link

Add deno fmt global settings #1121

Closed carafelix closed 5 months ago

carafelix commented 5 months ago

Is your feature request related to a problem? Please describe. Some project's forbidden the use of semicolons at the end of each line. It is possible to add:

{
  "fmt": {
    "options": {
      "semiColons": false
    }
  }
}

In the deno.json of the working directory.

EDIT: I added the deno.json but on saving it is still adding the semicolons

Describe the solution you'd like

I would like to have a global setting for the vscode server.

nayeemrmn commented 5 months ago

I added the deno.json but on saving it is still adding the semicolons

Ensure the deno lsp is configured as the formatter: https://github.com/denoland/vscode_deno?tab=readme-ov-file#formatting. We're trying to avoid editor specific configuration methods, things should be specified in the deno.json for alignment between CLI and LSP.