Skip to content

Allow to selectively enable/disable features of this extension #490

@cbandera

Description

@cbandera

We see several demands from users to selectively deactivate features of this extension. This is either because of performance reasons (long running queries in the background) or simply because features are not used and hence dependencies shouldn't be required (e.g. buildifier).

Features that qualify for deactivation:

  • Target Tree in the explorer view
  • CodeLens
  • Bazel Commands requiring bazel (build/test/queries)
  • Syntax Highlighting (? is this really something that you would want to turn off)
  • Language Server
  • Buildifier Linting

I assume there are some pitfalls to avoid here:

  • Deactivating bazel commands will also render almost any other functionality useless
  • We already have some settings that implicitly deactivate some features when the executable path is empty (language server). We might need to introduce a breaking change in order to provide a consistent user interface for configuration
  • A lot of the setup code for the features is done during activation of the extension. It probably requires quite some refactoring to be able to deactivate features without requiring a reload of the complete IDE.

For reference, I saw demands of this here (and some of these could be closed if this issue is solved):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions