Skip to content

Provide a way to enable linters/formatters by directory without deactivating the extension #22607

Closed as not planned
@noirbizarre

Description

@noirbizarre

Hi 👋🏼

Extracting linters and formatters into their own extensions was a good move in my opinion, but we lost some important features because before it was possible to:

  • to toggle them by directory in multiple root workspace, not possible anymore if the only way is to disable the extension
  • to mix them in a multiroot workspace (eg. have flake8 as project-a linter and pylint as project-b linter), not possible anymore, they are either active on the entire workspace or totally disabled (so you need to chose only one, deactivate the other or else you only have false positive)
  • to toggle them without VSCode restart (deactivating a linter extension requires a restart)
  • to toggle them from configuration file (which are versionnable and shareable), not possible anymore, extensions are exclusively managed by VSCode internals

So, given they use a common base template, is it possible to restore those behaviors by:

  • adding <extension namespace>.enabled boolean setting
  • ensure it is working by directory and not by workspace (this is very important for multiroots workspaces)
  • bonus: make this setting apply without a restart

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityneeds PRReady to be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions