Shows PLC variable values from TcStarep.log on hover in TeachTalk source files (.tts, .ttd, .ttp).
Features
- Hover Tooltips: Hover over a variable name to see its values from the Starep log.
Values are grouped by instance and displayed in a compact table.
- Automatic Log Discovery: The extension automatically locates the
TcStarep.log within the
archive directory structure (starep_*.tgz_/PLC/).
- Caching: Parsed logs are cached per report directory for fast repeated lookups.
- Configurable: Control which file extensions are supported, how many instances to show,
and whether pointer-only entries are displayed.
Supported File Types
| Extension |
Description |
.tts |
TeachTalk Source |
.ttd |
TeachTalk Data |
.ttp |
TeachTalk Program |
Commands
| Command |
Description |
Starep Variable Tooltip: Reload TcStarep.log |
Clears the log cache and reloads it on the next hover |
Starep Variable Tooltip: Show Debug Info |
Shows cached log statistics in the output panel |
Settings
| Setting |
Type |
Default |
Description |
kkStarepVarTooltip.supportedExtensions |
string[] |
[".tts", ".ttd", ".ttp"] |
File extensions where the hover is active |
kkStarepVarTooltip.maxInstancesInHover |
number |
20 |
Maximum number of instances shown in the tooltip (1-200) |
kkStarepVarTooltip.showPointers |
boolean |
false |
Show pointer-only entries (lines with -> but no value) |
kkStarepVarTooltip.logFileName |
string |
TcStarep.log |
Name of the log file to search for |
How It Works
- When you open a
.tts, .ttd, or .ttp file inside an extracted Starep archive,
the extension searches for the corresponding TcStarep.log.
- The log is parsed asynchronously and cached.
- When you hover over a variable name, the extension looks up all matching entries
in the log and displays their values grouped by instance.
Requirements
- VS Code 1.85.0 or newer
- TeachTalk files must be located within an extracted Starep archive directory structure
| |