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

Update default razor project cache file name #70156

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

phil-allen-msft
Copy link
Contributor

@phil-allen-msft phil-allen-msft requested a review from a team as a code owner September 27, 2023 20:59
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 27, 2023
Copy link
Member

@dibarbet dibarbet left a 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";
Copy link
Member

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";
Copy link
Contributor

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

Copy link
Contributor

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.

@davidwengier davidwengier merged commit 3531f5d into main Oct 2, 2023
24 checks passed
@ghost ghost added this to the Next milestone Oct 2, 2023
@jjonescz jjonescz modified the milestones: Next, 17.9 P1 Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants