-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Update default razor project cache file name #70156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to go into the pending vscode release as well?
@@ -14,7 +14,7 @@ internal sealed class RazorWorkspaceListenerInitializer | |||
{ | |||
// This should be moved to the Razor side once things are announced, so defaults are all in one | |||
// place, in case things ever need to change | |||
private const string _projectRazorJsonFileName = "project.razor.vscode.json"; | |||
private const string _projectRazorJsonFileName = "project.razor.vscode.bin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to move this to the razor side entirely (and have Roslyn consume it via an input param or option) as mentioned in the comment. But no need to do now if this needs to go in urgently.
@@ -14,7 +14,7 @@ internal sealed class RazorWorkspaceListenerInitializer | |||
{ | |||
// This should be moved to the Razor side once things are announced, so defaults are all in one | |||
// place, in case things ever need to change | |||
private const string _projectRazorJsonFileName = "project.razor.vscode.json"; | |||
private const string _projectRazorJsonFileName = "project.razor.vscode.bin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea to update this, but its only a fallback and probably will never be used. The real value to use gets passed in on the command line here: https://github.com/dotnet/vscode-csharp/blob/main/src/razor/src/razorLanguageServerClient.ts#L245
I took the liberty: dotnet/vscode-csharp#6447
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wrong, this is used, but only for writing the file. Reading the file needs the other PR I opened. Sorry, holiday brain.
Based on dotnet/razor#9270