You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've attempted to only print a subset of the original file because I only want to replace that part through VS Code's WorkspaceEdits (I'm developing a VS Code extension). Replacing the whole file puts more pressure on the VS Code as it has to recompute syntax highlighting, code lenses, and more. And I know which part of the file I'd like to touch - so it's best to focus on that part.
However, I've discovered that in such a situation Recast dedents my result and removes the original indentation of this node.
I've attempted to only print a subset of the original file because I only want to replace that part through VS Code's WorkspaceEdits (I'm developing a VS Code extension). Replacing the whole file puts more pressure on the VS Code as it has to recompute syntax highlighting, code lenses, and more. And I know which part of the file I'd like to touch - so it's best to focus on that part.
However, I've discovered that in such a situation Recast dedents my result and removes the original indentation of this node.
Repro case
https://codesandbox.io/s/affectionate-curie-dvwykb?file=/src/index.js
Actual
Expected
The text was updated successfully, but these errors were encountered: