-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Conversation
src/EditorFeatures/Text/Implementation/TextBufferFactoryService/ITextBufferCloneService.cs
Outdated
Show resolved
Hide resolved
...EditorFeatures/Text/Implementation/TextBufferFactoryService/TextBufferCloneServiceFactory.cs
Outdated
Show resolved
Hide resolved
171522f
to
3e0dc3e
Compare
This is now updated through bf32f41 |
3e0dc3e
to
5839f35
Compare
return Clone(textImage, contentType); | ||
} | ||
|
||
// we can't, so do it more expensive way |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally from #30733 (comment):
That is indeed expensive. Did this just move from somewhere else or is this new?
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.
Since dotnet#30868, `ContentTypeNames` has moved to this assembly. Type forwarding doesn't seem to work for IVT.
📝 Extracted from #30733