Skip to content

Cannot get Decorations for a textEditor #48364

Description

@ryanluker
  • VSCode api version: 1.1.10
  • OS Version: Linux

Steps to Reproduce:

  1. Render decorations with textEditor.setDecorations
  2. Try to find current decorations with textEditor.getDecorations but it doesnt exist?

Background:

I am looking at adding true e2e tests for my vscode extension
ryanluker/vscode-coverage-gutters@3af53e0#diff-579bc502e2c0744db6d55afe38b9f3d9R14
but there doesnt seem to be a way to see the current decorations?

Based on some internet searching I couldnt find anyone else doing this level of e2e testing (correct me if I am wrong and or if there is examples in the vscode project itself for this), so this issue would probably be more of a feature request to add a new piece of functionality to get decorations? I have a feeling the lack of getDecorations might be for security / performance reasons but I am happy to be wrong in this 😃 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateIssue identified as a duplicate of another issue(s)apifeature-requestRequest for new features or functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions