Skip to content

toerob/vscode-tads3tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

204 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-tads3tools

Buy Me A Coffee

Coverage Status

A language server/client for TADS 3 and TADS 2, tailored for Visual Studio Code. Prioritized for Linux and Mac, with Windows support.

Installation

Install via the VS Code marketplace — search for "tads3tools" in the Extensions tab.

Windows-specific instructions are here.

Development

This repository uses npm as the package manager.

  • Use npm for install, build, test, and publish workflows.
  • Do not add or update Yarn lockfiles for this project.

Getting started

Open a TADS 3 project folder in VS Code, or create one via the command palette (Ctrl+Shift+P): "Tads3 command: Create a new Tads3 template project".

The extension relies on the project's .t3m Makefile to locate includes and libraries. If t3make compiles the project from the command line, the extension should work out of the box.

TADS 2

Requires t3make, the TADS 2 compiler (tadsc / tc32.exe), and the library path. Configure via:

  • tads.preprocessor.path (default: t3make)
  • tads2.compiler.path (default: tadsc)
  • tads2.library.path (default: /usr/local/share/frobtads/tads2/)

A full list of all available commands is in the Command Reference.

Features

Symbol outline

outliner.mp4

Go to definition

definitions.mp4

Hover documentation

hoverdoc.mp4

Create new project

createNewProject.mp4

Visual map editor"Tads3 command: Open current tads3 source code in Tads3 Visual Editor"

Displays a live map of the game world with interactive exits and room editing.

mapeditor.mp4

Diagnostics on save

diagnostics.mp4

Code completions

completions.mp4

Completion documentation

completiondoc.mp4

Snippets

snippets.mp4
snippets2.mp4

Code actions"Tads3 command: Analyze the text at the current position and offer code actions"

Uses NLP to identify nouns in a room description and offers to create decoration objects for them, with automatic +/++ levelling.

propGenerator.mp4

Preprocessor view — inspect preprocessed source for debugging

preprocessedDocCmds.mp4

String extraction — extract all quoted strings in the project or current file

stringExtractor.mp4

Auto-restart interpreter"Tads3 command: Toggles on/off if the game should restarted as soon as the t3 image game file changes"

Relaunches the game in a terminal on every successful compile. Configurable interpreter via tads3.gameRunnerInterpreter (default: frob).

Game position tracker"Tads3 command: Install a tracker game file..."

Persists the player's room position between sessions, enabling a continuous inner development loop together with the auto-restart feature.

Download extensions"Tads3 command: Download and install extension(s)"

Fetches TADS 3 extensions from the IF Archive and installs them into the project folder.


Attributions

License

MIT — Copyright Tomas Öberg 2021

About

Tads3 for Visual Studio Code

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors