Comments (5)
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.
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.
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.
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
Cygwin Bash
(User)Git Bash
(User, not working due to a bug in 1.67+)PowerShell
v7 (User, manually installed)Windows PowerShell
(User, stock one, autodetected)Windows CMD
(User, autodetected)SSH to dev VM
(workspace local)- 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.
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)
- Does not work with names or paths with spaces. HOT 1
- Run batches in the new Terminal HOT 3
- Support .CMD files HOT 1
- With powershell terminal, this fails. HOT 1
- Support running scripts as admin HOT 1
- Doesn't work if default terminal is changed HOT 1
- Strange behavior each line is run separately HOT 2
- Send parameters and potentially integrate with launch.json HOT 2
- Syntax highlighting don't work properly when using ^"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-batch-runner.