Skip to content

Using unreleased versions of tools early

Novus Nota edited this page Jun 25, 2024 · 17 revisions

VS Code

Extensions folder

Extensions are installed in a per user extensions folder. Depending on your platform, the location is in the following folder:

  • Windows: %USERPROFILE%\.vscode\extensions
  • macOS: ~/.vscode/extensions
  • Linux: ~/.vscode/extensions

(originally described here)

Simplest way to reach that folder without going to terminal is via Command Palette in VSCode (Ctrl/Cmd + Shift + P), then typing Open Extensions Folder.

From there, one can manipulate the installed extensions and even replace some files on the fly.

Updating the Tact grammar

For example, to get the latest VS Code highlighting in the KonVik's VS Code extension for Tact:

  1. Find it in the extensions folder. On Linux and macOS: ~/.vscode/extensions/konvik.tact-lang-vscode-1.3.0/ (version numbers change between releases)
  2. Open that folder in the terminal or in a file explorer
  3. Replace the syntaxes/tact.json file with the latest one from the tact-vscode repo. Alternatively, the package/Tact.tmLanguage.json file from tact-sublime can be taken, but make sure to rename it to tact.json when replacing.

To get continuous updates of the said syntax, one may symlink one of those files mentioned above from tact-vscode or tact-sublime repos cloned locally to your extension folder. On Linux and macOS, it would look like this (assuming you've deleted the tact.json file from the local extension folder):

# Note, that -1.3.0 version suffix may be different in your case, releases happen :)
ln -s \
      /place/of/local/tact-vscode/syntaxes/tact.json \                       # source file to link to
      ~/.vscode/extensions/konvik.tact-lang-vscode-1.3.0/syntaxes/tact.json  # link you're making
Clone this wiki locally