I'm trying to add background text for an extension I'm creating like how GitLens does. Is there an API, or function I can use to push text onto the editor?
Asked
Active
Viewed 62 times
0
-
2most likely it is a decorator with an `:after` content on the last character of the line – rioV8 Feb 02 '23 at 21:38
1 Answers
0
I believe the related source code is here: https://github.com/gitkraken/vscode-gitlens/blob/main/src/annotations/lineAnnotationController.ts.
It uses the decorations feature of the VS Code API- in particular, text editor decorations. See the window.createTextEditorDecorationType
and editor.setDecorations
and related functions.

starball
- 20,030
- 7
- 43
- 238