janet-lang / vscode-janet Goto Github PK
View Code? Open in Web Editor NEWJanet language support for Visual Studio Code
License: MIT License
Janet language support for Visual Studio Code
License: MIT License
Janet is a small language that can be conveniently installed and used just by copying a single binary, with no other dependencies or libraries.
However, the formatting in the VS Code extension only works if spork is installed. To install spork, jpm has to be installed.
It's trivial to modify the extension so that it runs independently on jpm or spork, requiring just the janet
binary. I think this would make it easier to use the extension for people who are e.g. just trying Janet out and do not (yet) even know what jpm or spork is.
After having cloned the repo into ~/.vscode/extensions
it doesn't show up in my Extensions tab, so I can't enable it.
Looked around in vscode docs but couldn't find a way to enable it outside generating some sort of installation file.
Is there any particular reason for this? Missing features?
Even if an existing janet repl exists from a previous Janet: Evaluate expression
or Janet: Start REPL
, a new one is created every time Janet: Evaluate expression
is invoked.
I'm sure that I'm missing something obvious (new to Janet and VS Code), but are there any settings or installation steps to use the keyboard shortcut to evaluate an expression (on macOS)?
There is no command history in the Janet REPL started from the extension. It also lacks autocompletion too.
Expected
When clicking Up Arrow in Janet REPL, I should see previous command.
Actual
When clicking Up Arrow in Janet REPL, I see ^[[A
symbols.
I've tracked it to -s
flag of the REPL started. I don't know if it is there for a specific purpose, but running REPL without it fixes the issue.
It would be awesome if you could also publish this extension to open-vsx.org. This would make it much easier to install on forks of VSCode like VSCodium, which are not allowed to use the official marketplace.
https://github.com/eclipse/openvsx/wiki/Publishing-Extensions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.