Skip to content
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

Update ITextBufferCloneService #30868

Merged
merged 2 commits into from
Nov 8, 2018

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Oct 31, 2018

  • Rename ITextBufferCloneService methods to clarify content type behavior
  • Support cloning a SourceText with a specified content type

📝 Extracted from #30733

@sharwell sharwell requested a review from a team as a code owner October 31, 2018 18:45
@sharwell
Copy link
Member Author

sharwell commented Nov 8, 2018

This is now updated through bf32f41

@sharwell sharwell changed the base branch from dev16.0.x to features/razor-far November 8, 2018 23:30
@sharwell sharwell merged commit 0bcb70c into dotnet:features/razor-far Nov 8, 2018
@sharwell sharwell deleted the content-type branch November 8, 2018 23:30
return Clone(textImage, contentType);
}

// we can't, so do it more expensive way
Copy link
Member Author

Choose a reason for hiding this comment

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

Originally from #30733 (comment):

@jasonmalinowski

That is indeed expensive. Did this just move from somewhere else or is this new?

@heejaechang

expensive way was the way FAR used to do. I moved this code from there. and use cheap way if possible, which is almost 100% time for FAR.

if sourcetext is not backed by editor text (like sourcetext created from tree factory or modified tree from tree tranformation), this will still clone but through more expensive way.

sandyarmstrong added a commit to sandyarmstrong/roslyn that referenced this pull request Dec 19, 2018
Since dotnet#30868, `ContentTypeNames`
has moved to this assembly. Type forwarding doesn't seem to work for
IVT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants