Skip to content

Conversation

@belav
Copy link
Owner

@belav belav commented Apr 23, 2024

closes #1238

this.formatFile("public class ClassName { }", "/Temp/Test.cs").then(() => {
this.formatFile("public class ClassName { }", "/Temp/Test.cs");
// make sure we give a path that should not exist to avoid any errors when trying to find config files etc.
this.formatFile("public class ClassName { }", `/${Date.now()}/Test.cs`).then(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the goal is for the directory to not exists, why not just use ""?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, csharpier is unhappy if you do that. There should probably just be an option for "no file path" and 0.28.0 would have been the time to add it. Dammit.

@belav belav merged commit 488ddab into main Apr 26, 2024
@belav belav deleted the vscode-fix branch April 26, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSharpier process failed to start (VSCode extension v1.7.0)

3 participants