opened
skdeng
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
Version: 1.43.0-insider (user setup)
Commit: e6a45f4242ebddb7aa9a229f85555e8a3bd987e2
Date: 2020-02-21T05:42:20.536Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.17763

Decorations from multiple extensions seems to be interfering with each other. In the example below, I create a decoration that append `text` in red at the cursor location. However, with the [GitLens ](https://github.com/eamodio/vscode-gitlens) extension enabled side-by-side, the decoration is being moved by the GitLens extension.

**Code:**
```
import * as vscode from "vscode";

export function activate(context: vscode.ExtensionContext) {
  const decorationType = vscode.window.createTextEditorDecorationType({});
  const updateDecoration = () => {
    const activeEditor = vscode.window.activeTextEditor;
    if (activeEditor) {
      const decorationOptions = [
        {
          range: new vscode.Range(
            activeEditor.selection.active,
            activeEditor.selection.active
          ),
          renderOptions: {
            after: {
              contentText: "text",
              color: "red"
            }
          }
        }
      ];
      activeEditor.setDecorations(decorationType, decorationOptions);
    }
  };

  vscode.workspace.onDidChangeTextDocument(event => {
    updateDecoration();
  });
}

export function deactivate() {}
```

**Behavior:**
![vsce](https://user-images.githubusercontent.com/3770270/75074479-a6583f80-54b0-11ea-878b-4f0dbce703b4.gif)



<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: No
Decorations from multiple extensions interfering with each other
issue
created
usernamehw
/findDuplicates
comment
created
usernamehw
Duplicate of #33852
comment
created
usernamehw
/duplicate of #33852
comment
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues [here](https://aka.ms/vscodeissuesearch). See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.

Happy Coding!
This message directly preceded comment from bot *vscodebot[bot]* by author *usernamehw*:
/duplicate of #33852
This message directly preceded comment from bot *vscodebot[bot]* by author *usernamehw*:
/duplicate of #33852