Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dibarbet
Copy link
Member

@dibarbet dibarbet commented Feb 24, 2024

An issue was caught by the vscode-csharp integration tests where override completion was broken with the latest roslyn on Windows. I'm not sure exactly when this regressed, but possibly related to changes made for xaml support.

I wasn't able to track down the exact cause - but on Windows the URI sent from the server in the completion resolve command is getting serialized as just the local path (e.g. not including the file:/// part). The vscode client is expecting a URI string, and when it tries to deserialize, it fails.

This inconsistency in serialization is likely because there's no explicit serializer for the Uri type defined, so it ends up being up to the whims of the serialization library. Instead, we should just pass the TextDocumentIdentifier which already defines an explicit and consistent URI serializer.

Requires client side change here - dotnet/vscode-csharp#6920

@dibarbet dibarbet requested a review from a team as a code owner February 24, 2024 09:38
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 24, 2024
@dibarbet dibarbet merged commit 3059a07 into dotnet:main Feb 25, 2024
@dibarbet dibarbet deleted the fix_uri_override branch February 25, 2024 01:26
@jjonescz jjonescz added this to the 17.10 P2 milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE 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.

3 participants