Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with csharpier server not using dotnet root #1239

Merged
merged 1 commit into from
Apr 26, 2024
Merged

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
3 checks passed
@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)
2 participants