Skip to content

Double check if native tostring is [object *] - #1339

Merged
Connor Peet (connor4312) merged 2 commits into
microsoft:mainfrom
Balastrong:feature/1338-double-check-object-string
Jul 25, 2022
Merged

Double check if native tostring is [object *]#1339
Connor Peet (connor4312) merged 2 commits into
microsoft:mainfrom
Balastrong:feature/1338-double-check-object-string

Conversation

@Balastrong

Copy link
Copy Markdown
Contributor

This PR fixes #1338

As mentioned in the vscode repo (see microsoft/vscode#155718 (comment)) it might make sense to doublecheck and avoid using the native toString if the output is [object *] and there is a better alternative.

Comment thread src/adapter/templates/getStringyProps.ts Outdated
Comment thread src/adapter/templates/getStringyProps.ts Outdated
@connor4312

Copy link
Copy Markdown
Member

Thanks for the PR! Couple small comments

@Balastrong

Copy link
Copy Markdown
Contributor Author

Thank you very much for the comments, they totally make sense :)

I've updated the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid using [object Object] for previews

3 participants