formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.18k stars 289 forks source link

Hide Code Runner button for .dart files if Dart extension is also installed #674

Open DanTup opened 3 years ago

DanTup commented 3 years ago

Hi!

I work on the Dart extension for VS Code. I've recently added buttons to make running/debugging Dart files more discoverable (based on recent VS Code recommendations) though uses with Code Runner installed now see multiple sets of buttons that can be confusing:

Screenshot 2020-09-14 at 09 27 33

For Flutter users, the Code Runner button won't work correctly (since it only calls dart <script> but Flutter projects need to be run with flutter) whereas the Dart buttons are contextual and will work for both Dart and Flutter projects (as well as test files and others).

Would you consider hiding the button for Dart files if the Dart extension is also installed, to avoid some confusion?

Thanks!

noordawod commented 2 years ago

wow, only (almost) 2 years have passed since this was reported... lovely.