Skip to content

Improve docs for TextEditor.setDecorations#122785

Merged
alexdima merged 2 commits intomicrosoft:mainfrom
tejasvi:patch-1
May 18, 2021
Merged

Improve docs for TextEditor.setDecorations#122785
alexdima merged 2 commits intomicrosoft:mainfrom
tejasvi:patch-1

Conversation

@tejasvi
Copy link
Copy Markdown
Contributor

@tejasvi tejasvi commented May 1, 2021

This PR fixes #122784

It should be documented that if the `rangesOrOptions.length == 0` and the decoration already exists in the editor, it _removes_ the decoration instead of no-op.

https://github.com/microsoft/vscode/blob/94c9ea46838a9a619aeafb7e8afd1170c967bb55/src/vs/workbench/api/common/extHostTextEditor.ts#L467-L474
@alexdima alexdima self-assigned this May 2, 2021
@alexdima alexdima added this to the May 2021 milestone May 18, 2021
@alexdima
Copy link
Copy Markdown
Member

Thank you!

@alexdima alexdima merged commit 71e729d into microsoft:main May 18, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve docs for TextEditor.setDecorations

2 participants