Skip to content

janet-lang/vscode-janet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0225a87 · Feb 21, 2023

History

45 Commits
Jan 4, 2019
Jan 4, 2019
Feb 19, 2023
Feb 19, 2023
Dec 13, 2020
Aug 22, 2021
Jun 5, 2019
Apr 29, 2020
Feb 19, 2023
Feb 19, 2023
Aug 22, 2021
Aug 22, 2021

Repository files navigation

Janet language support for Visual Studio Code

Features

  • Syntax highlighting
  • Eval expression alt+e
  • Eval file alt+l

Notes

This extension is not published yet. To install proceed to local install section.

Local install

# First, make sure you have Node.js version 14 or greater installed. 

# Clone the extension.
git clone https://github.com/janet-lang/vscode-janet.git
cd vscode-janet

# Install vscode-janet dependencies.
npm install

# Generate the vscode extension (VSIX) file using vsce. 
npx vsce package

# Install the extension.
code --install-extension vscode-janet-0.0.2.vsix

# Finally reload the vscode window (cmd + shift + P > Developer: Reload Window).

Alternatively you can clone the extension right into vscode's extention directory. This is easier, but can be unreliable as vscode will sometimes clean up the extension directory and remove vscode-janet.

# Clone the extension.
cd ~/.vscode/extensions
git clone https://github.com/janet-lang/vscode-janet.git

# Force vscode to regenerate the extensions.json file.
mv extensions.json /tmp/ 

# Finally reload the vscode window (cmd + shift + P > Developer: Reload Window).

# If you're finding that vscode isn't loading the extension, you can force it to
# regenerate the extensions.json file by removing ~/.vscode/extensions/extensions.json.

Debug this extension

  • Run npm install in terminal to install dependencies
  • Run the Run Extension target in the Debug View in VS Code. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window

About

Janet language support for Visual Studio Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published