mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Update USAGE.md
This commit is contained in:
@ -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, []);`
|
||||
|
||||
Reference in New Issue
Block a user