editorconfig-vscode icon indicating copy to clipboard operation
editorconfig-vscode copied to clipboard

Feature request: Ability to hide the "Generate editorconfig"

Open Paradoxis opened this issue 3 years ago • 1 comments

Please fill-in this template.

  • [x] I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker.
  • [x] I tried running code --disable-extensions and the issue did NOT present itself.

Issue

I was wondering if it's possible to add an option which disables the Generate .editorconfig right click action in the explorer tab. I keep accidentally clicking it when right clicking somewhere and letting go right above the button (which is generally directly afterwards) due to the way my Linux distro handles right click actions (still figuring out how to change that behavior).

I would like to use editorconfig to enforce code style, but have the ability to hide this option as I keep accidentally keep committing template editorconfig files in random directories. Screenshot for reference:

image

I thought setting the following settings would do the trick but I was mistaken:

{
    "editorconfig.generateAuto": false,
    "editorconfig.template": ""
}

Thanks and have a nice day :)

Version information

Visual Studio Code editorconfig-vscode
Version 1.64.2 v0.16.4

Paradoxis avatar Feb 19 '22 00:02 Paradoxis

In addition to that, if the folder already has the .editorconfig file, then there is no need to show the option there.

I get the following error when right clicking on a project that aready has the file in the root:

image

gian1200 avatar Aug 11 '22 01:08 gian1200