formulahendry / formulahendry/vscode-code-runner

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

Open
#838 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

**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](https://user-images.githubusercontent.com/57928210/126207309-37e7eead-4d8f-453a-9e5f-7125a43a9464.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.