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 handling files with non-Ascii characters by sending a TextDocumentIdentifier for dynamic file requests/responses #7442

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

ryzngard
Copy link
Contributor

VS Code side of dotnet/roslyn#74727

@ryzngard ryzngard requested review from a team as code owners August 13, 2024 20:47
@ryzngard ryzngard changed the base branch from main to prerelease August 13, 2024 20:50
@@ -24,6 +24,6 @@ export class UriConverter {
}

public static deserialize(value: string): vscode.Uri {
return vscode.Uri.parse(value);
return vscode.Uri.parse(value, true);
Copy link
Member

Choose a reason for hiding this comment

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

what does true do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's the strict parameter. It causes it to throw if the Uri doesn't have a schema

…tIdentifier for dynamic file requests/responses
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.

pending roslyn update

export class RemoveDynamicFileParams {
constructor(public readonly razorFiles: DocumentUri[]) {}
constructor(public readonly csharpDocument: TextDocumentIdentifier) {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

so ironically I named this wrong in the original PR 😅. I'll get that fixed later

@dibarbet dibarbet merged commit 29425b0 into dotnet:prerelease Aug 14, 2024
13 checks passed
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.

3 participants