-
Notifications
You must be signed in to change notification settings - Fork 676
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
Conversation
09dd6b9
to
ecd213a
Compare
@@ -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); |
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.
what does true do here?
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.
it's the strict
parameter. It causes it to throw if the Uri doesn't have a schema
…tIdentifier for dynamic file requests/responses
ecd213a
to
f63e170
Compare
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.
pending roslyn update
export class RemoveDynamicFileParams { | ||
constructor(public readonly razorFiles: DocumentUri[]) {} | ||
constructor(public readonly csharpDocument: TextDocumentIdentifier) {} |
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.
so ironically I named this wrong in the original PR 😅. I'll get that fixed later
VS Code side of dotnet/roslyn#74727