vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

[Feature request] Exclude Code-Runner from running with certain file extensions (to avoid duplicate run buttons)

Open trolledbypro opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe. I am requesting a feature where I can have code-runner be excluded from being enabled with certain file extensions. This would avoid having duplicate run buttons like what I have in PowerShell .ps1 and .psm files. Describe the solution you'd like I would like to have the ability to exclude code-runner from running with certain file extensions by adding an exclusion list in settings or in the settings .json file. So for example I would add a line in the .json settings file that would stop code-runner from running with certain extensions such as .ps1 and .psm. For example, with PowerShell (.ps1 and .psm), the PowerShell extension already has a run and debug button, so code-runner creates a duplicate run button. See the following example, the left duplicate run button is from code-runner.

image

trolledbypro avatar Jul 19 '21 18:07 trolledbypro