Skip to content

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Feb 2, 2023

We're losing data between our endpoint and middleware (custom message target) because the platform converters aren't used for writing.

Poiinting this to release/dev17.6 on the assumption web tools wants it for M2. @ToddGrun @jimmylewis let me know if P2 is okay.

@davidwengier davidwengier requested review from a team as code owners February 2, 2023 03:14
@davidwengier davidwengier changed the base branch from main to release/dev17.6 February 2, 2023 03:14
var request = new VSCodeActionParams()
{
TextDocument = new TextDocumentIdentifier { Uri = new Uri(documentPath) },
TextDocument = new VSTextDocumentIdentifier { Uri = new Uri(documentPath) },
Copy link
Contributor

Choose a reason for hiding this comment

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

For future reference, is there any reason why we should ever do TextDocumentIdentifier instead of VSTextDocumentIdentifier? It seems like if someone doesn't want the extra VS stuff (and IIRC it's all additive) they'll just drop it when they serialize right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Personally, I think this whole PR shouldn't exist and we should never use VS* types. I think its a failing of the platform that we have to.

Copy link
Member Author

Choose a reason for hiding this comment

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

Internestingly Web Tools has a VSCodeActionParams of their own, presumably to acheive the same thing as this PR, but they use TextDocumentIdentifier. I'm just more lazy and did a direct copy/paste.

@davidwengier davidwengier changed the base branch from release/dev17.6 to main February 2, 2023 21:13
@davidwengier
Copy link
Member Author

Thanks for reviews.. Web Tools don't need this is P1, so i'm rebasing and fixing conflicts...

@davidwengier davidwengier force-pushed the SendVSInternalTypesToWebTools branch from 60a38ad to 56a703e Compare February 2, 2023 21:17
@davidwengier
Copy link
Member Author

Nope, gonna move this back to 17.6P1, since it fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1733577

@davidwengier davidwengier force-pushed the SendVSInternalTypesToWebTools branch from 56a703e to ab789e6 Compare February 3, 2023 00:23
@davidwengier davidwengier changed the base branch from main to release/dev17.6 February 3, 2023 00:23
@davidwengier davidwengier merged commit 512e5f8 into dotnet:release/dev17.6 Feb 3, 2023
@davidwengier
Copy link
Member Author

lol that was a fun github-ism.. i targeted release/dev17.6, builds passed. I retargeted main, set auto-complete, builds failed. I retargeted release/dev17.6, PR auto-merged without any builds.

Hopefully things will be fine!!

@davidwengier davidwengier deleted the SendVSInternalTypesToWebTools branch February 3, 2023 00:26
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