Giter Site home page Giter Site logo

Comments (10)

rjkz808 avatar rjkz808 commented on June 5, 2024 1

I understand that it can be fixed by disabling the whole extension for specific workspaces, but current solution is to use prompt, which unfortunately still keeps Deno formatting enabled

image

from vscode_deno.

rjkz808 avatar rjkz808 commented on June 5, 2024

image

from vscode_deno.

rjkz808 avatar rjkz808 commented on June 5, 2024

Hey! Will this issue be solved?

from vscode_deno.

justjavac avatar justjavac commented on June 5, 2024

@rjkz808 sorry, I am too busy this week. but it has not been fixed yet

from vscode_deno.

hkong avatar hkong commented on June 5, 2024

Is it possible for the extension to respect a .prettierrc file in the project path? I'm working on multiple projects each of which have different .prettierrc settings, and while I applaud having an official deno format for public modules, private or custom projects that needs to live with existing Typescript/Javascript code bases should follow a .prettierrc specification. Maybe default to the deno format unless a .prettierrc file exists in the project path? That would satisfy all scenarios.

from vscode_deno.

brandonkal avatar brandonkal commented on June 5, 2024

No, defaulting to format via deno unless a prettierrc does not satisfy all scenarios as there are many ways prettier can be configured.

Not touching the files at all would be a better default. axetroy already fixed this in that version.

from vscode_deno.

lucacasonato avatar lucacasonato commented on June 5, 2024

Duplicate of #193

from vscode_deno.

brandonkal avatar brandonkal commented on June 5, 2024

@lucacasonato even with 193 solved, this issue remains, namely that there is a conflict with the Prettier extension when this extension is installed. By default, this extension overrides the user's formatting preferences for JavaScript and TypeScript files.

Therefore I disagree that this is a duplicate of the newer issue unless that behavior has been removed.

from vscode_deno.

lucacasonato avatar lucacasonato commented on June 5, 2024

By default, this extension overrides the user's formatting preferences for JavaScript and TypeScript files.

I can not reproduce this.

from vscode_deno.

marcelocra avatar marcelocra commented on June 5, 2024

Google brought me here. I had some sort of conflict between formatters (prettier vs deno) and solved it with this (found in #193):

{
  "deno.enable": true,
  "deno.lint": true,
  "deno.unstable": true,
  "[typescript]": {     // <= ADDED THIS.
    "editor.defaultFormatter": "denoland.vscode-deno"
  }
}

This goes in the project's .vscode/settings.json.

from vscode_deno.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.