fix: remove the @internal decorator for the method getPlainText of document #2657
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
toPlainText()
method of document is not work correctly for the custom embed builders, then I have read the source code. And I found that the alternative way is to usegetPlainText
method and pass the whole document range as params to meet the same effect astoPlainText
method.But, I got the warning when I set the last param
includeEmbeds
's value as true. So, the PR is to fix the warning caused by the decorator@internal
.Related Issues
Type of Change