Skip to content

Port Wrap with Tag endpoint to cohosting #11993

@davidwengier

Description

@davidwengier

We currently have a WrapWithTagEndpoint, but we need to port it to cohosting.

  • Create a new CohostWrapWithTagEndpoint in the LanguageServices.Razor project, next to the other cohost services
  • Create a new IRemoteWrapWithTagService interface in the Workspaces project
  • Create an entry in Services.props for the new service
  • Create a new RemoteWrapWithTagService implementation in the Remote.Razor project
  • Copy the logic for checking if the position in the request is valid, from WrapWithTagEndpoint to RemoteWrapWithTagService
  • In CohostWrapWithTagEndpoint, call into the remote service to check position validity, and if its valid, call the WrapWithTag method in the Html server, via an IHtmlRequestInvoker
  • After getting the result back from Html, fix the edits using the FixHtmlTextEdits method

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions