-
Notifications
You must be signed in to change notification settings - Fork 229
Closed
Description
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
Copilot