Santiago Aguilar Hernandez
Santiago Aguilar Hernandez
DDeno
Created by Santiago Aguilar Hernandez on 6/21/2024 in #help
Formatting with VSCode adds a tab instead of 2 spaces
Hi, I'm experiencing a weird behavior in VSCode. I'm formatting a new Typescript file however it adds a tab for indentation instead of 2 spaces, but formatting an existing file works. I have setup this config under deno.json: "fmt": { "indentWidth": 2 } However running deno fmt myFile.ts works in both cases (old and new files). Is it suppose that Deno VSCode extension uses deno fmt under the hood? I have attached a video.
4 replies
DDeno
Created by Santiago Aguilar Hernandez on 4/1/2023 in #help
Should "exists" function from STD be used as a last resort?
There was an undo deprecation for "exists" functions but still in the code it says this: Note: Do not use this function if performing a check before another operation on that file. Doing so creates a race condition. Instead, perform the actual file operation directly. So basically this message and the description in the PR, would mean use it but as last resort? e.g: third party scenarios? Thanks. https://github.com/denoland/deno_std/pull/2785
4 replies
DDeno
Created by Santiago Aguilar Hernandez on 12/29/2022 in #help
What’s the behavior in Deno when a response body mismatch its length with Content-Length header?
Really curious about if Deno truncates the body (even if is a ReadableStream) when this happens, I read about this at https://www.ibm.com/docs/en/ibm-mq/9.0?topic=headers-content-length-http-entity-header Thanks!
3 replies