Giter Club home page Giter Club logo

Comments (5)

nils-soderman avatar nils-soderman commented on May 31, 2024

Hi,

Oh, seems like vscode doesn't recognize .BTM files :(
I'll look into adding proper .BTM support for the extension.

In the meantime, a workaround would be to go into your User or Workspace Settings (JSON),
And manually tell VSCode to treat .btm files as batch files by adding the following:

"files.associations": {
        "*.btm": "bat"
}

Thank you for reporting this issue!

Cheers,
Nils

from vscode-batch-runner.

JoeC4281 avatar JoeC4281 commented on May 31, 2024

Thankyou, that works for me.

Note well that TCC-RT would be free to distribute with your VSCode Extension, so that would (maybe) make things easier for integration into VSCode.

Note that TCC-RT is a 64-bit only application.

You can contact Rex Conn, owner of JPSoft, to confirm this, and let him know of your intentions, if you decide to go this route.

The JPSoft Forum is very active, and any questions you have about TCC-RT could be answered there.

Joe

from vscode-batch-runner.

AnrDaemon avatar AnrDaemon commented on May 31, 2024

That's not quite correct. While TCC may run .bat files to a degree, it not always correctly replicate all CMD bugs/caveats.
Blindly replacing %ComSpec% with TCC is not the right way for living a long and prosperous life.

from vscode-batch-runner.

AnrDaemon avatar AnrDaemon commented on May 31, 2024

A more direct approach could be to map extensions to configured terminals.
Then it is up to user to configure terminals and sort extensions across them.
F.e. I have configured terminals for

  1. Cygwin Bash (User)
  2. Git Bash (User, not working due to a bug in 1.67+)
  3. PowerShell v7 (User, manually installed)
  4. Windows PowerShell (User, stock one, autodetected)
  5. Windows CMD (User, autodetected)
  6. SSH to dev VM (workspace local)
  7. A list of installed PHP versions (User, depending on

Default terminal is different depending on project. Commonly it is Cygwin Bash, but not always.
CMD could run %PATHEXT% scripts from associations, but in Win10+ (may be even Win8) it has a frightening bug of premature symlink resolution, which makes linked scripts useless outside their realpath.

from vscode-batch-runner.

nils-soderman avatar nils-soderman commented on May 31, 2024

Hi,

Thank you both for your valuable thoughts.

After thinking about this for a while, I've come to the conclusion that officially supporting .BTM files would be out of scope for what this extension sets out to do. Hence the 1.0.1 update has removed all indications that this extension would support .BTM files.

Support for .BTM files should probably be handled by another extension that could revolve more around integrating TCC in VS Code (and possible even bundle TCC-RT, as you mentioned).

Cheers,
Nils

from vscode-batch-runner.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.