Comments (10)
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
from vscode_deno.
from vscode_deno.
Hey! Will this issue be solved?
from vscode_deno.
@rjkz808 sorry, I am too busy this week. but it has not been fixed yet
from vscode_deno.
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.
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.
Duplicate of #193
from vscode_deno.
@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.
By default, this extension overrides the user's formatting preferences for JavaScript and TypeScript files.
I can not reproduce this.
from vscode_deno.
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)
- Cannot find modules error. HOT 2
- Unable to retrieve source content HOT 1
- Context Menu "Run Task" in deno.json has no effect.
- vscode extension does not agree on formatting with `deno fmt` HOT 2
- Not possible to navigate to the source of a package via jsr:@. HOT 5
- "unstable" flag doesn't turn recognition of unstable API's on and off HOT 6
- tRPC or Hono RPC - Can't import types from Deno folder (server) to Node folder (client) HOT 6
- Settings.json (typescript service not disabled) and Deno.json (excluded lint rules messages persist) HOT 14
- auto-import for `std` modules HOT 4
- LSP loses deno namespace info when switching from node subdirectory to deno subdirectory
- Ability to add package to deno.json via command palette?
- When using custom deno.json in workspace settings, fmt settings don't work and imports cause errors HOT 2
- Nothing works :( HOT 6
- Inconsistent deno fmt result between 1.41.3 and 1.42.0 HOT 4
- relative path import suggestions does not exclude `DENO_DIR`
- Jupyter notebook requires enabling deno in settings.json to disable TS even when deno.json exists
- Deno extension doesn't work in workspaces properly HOT 1
- Everything in Intellisense is duplicated HOT 2
- deno.importMap setting is ignored if deno.json includes an import map HOT 3
- readonly not considered to be initialized first HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode_deno.