From 5fa205d0a44441f45343a1f766bc07ecd4e05959 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Fri, 30 Nov 2018 14:31:12 -0500 Subject: [PATCH 1/2] clarify how to remove a decoration type from view --- decorator-sample/USAGE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/decorator-sample/USAGE.md b/decorator-sample/USAGE.md index 7a38187d..cf8bd91b 100644 --- a/decorator-sample/USAGE.md +++ b/decorator-sample/USAGE.md @@ -67,4 +67,6 @@ activeEditor.setDecorations(smallNumberDecorationType, smallNumbers); ## Tips -As a note, if you insert a new range of decorations using `editor.setDecorations` with a `TextEditorDecorationType` that has already been used, it will overwrite the previous set of decorations. \ No newline at end of file +As a note, if you insert a new range of decorations using `editor.setDecorations` with a `TextEditorDecorationType` that has already been used, it will overwrite the previous set of decorations. + +If you'd like to remove a decoration type then pass in an empty array to clear it from the editor. Example: `editor.setDecorations(decorationType, []);` From 3e9a71ea0c4e994768b729a0cd3ebcbffacaf44f Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Fri, 30 Nov 2018 14:34:17 -0500 Subject: [PATCH 2/2] Update USAGE.md --- decorator-sample/USAGE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decorator-sample/USAGE.md b/decorator-sample/USAGE.md index cf8bd91b..adc5251f 100644 --- a/decorator-sample/USAGE.md +++ b/decorator-sample/USAGE.md @@ -69,4 +69,4 @@ activeEditor.setDecorations(smallNumberDecorationType, smallNumbers); As a note, if you insert a new range of decorations using `editor.setDecorations` with a `TextEditorDecorationType` that has already been used, it will overwrite the previous set of decorations. -If you'd like to remove a decoration type then pass in an empty array to clear it from the editor. Example: `editor.setDecorations(decorationType, []);` +If you'd like to remove a decoration(s) of a certain decoration type then pass in an empty array to clear it from the editor. Example: `editor.setDecorations(decorationType, []);`