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

Shorten the "temp" path used for the miscellaneous files project used in the Razor language server #11296

Open
DustinCampbell opened this issue Dec 12, 2024 · 1 comment
Milestone

Comments

@DustinCampbell
Copy link
Member

In the Razor language server, a miscellaneous files project is added with a fake-but-unique file path that looks like so:

var tempDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("n"));
var filePath = Path.Combine(tempDirectory, "__MISC_RAZOR_PROJECT__"); 

It would be helpful to shorten this path or make it more obvious for scanning through logs.

see #11295 (comment)

@davidwengier
Copy link
Contributor

Since we use fancy interpolated string handlers for logging, we could potentially add an AppendFormatted(ProjectKey key) method to our handler, and log a special value, rather than have to deal with potential fallout from changing the misc files path itself, in any meaningful way

@davidwengier davidwengier added this to the Backlog milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants