Tyhp LanguageEditor support for Tyhp To learn the language itself, see tyhplang.com. Features
Requirements
Getting started
If the status bar shows CLI missing, click it and choose Install / Update CLI. Debugging
|
| Command | What it does |
|---|---|
| Tyhp: Install / Update CLI | Download the Tyhp CLI from GitHub Releases, globally or for this extension only |
| Tyhp: Refresh Tyhp binary | Search PATH for tyhp again |
| Tyhp: Reveal CLI Path | Show which tyhp binary is in use |
| Tyhp: Restart Language Server | Restart every running Tyhp language server |
| Tyhp: Initialize Project | Run tyhp init to create a tyhp.json |
| Tyhp: Start / Stop / Restart XDebug Proxy | Control the proxy used for debugging |
Settings
| Setting | Description |
|---|---|
tyhp.path |
Path to the tyhp CLI. Filled in automatically when the CLI is found on PATH or installed by the extension |
tyhp.projectPath |
Use a single tyhp.json instead of every project in the workspace |
tyhp.languageServer.args |
Extra arguments for tyhp language_server |
tyhp.languageServer.trace |
Log language server messages: off, messages, or verbose |
tyhp.languageServer.maxSessions |
Maximum number of language servers running at once (default 8) |
tyhp.diagnostics.enable |
Show diagnostics in the Problems panel |
tyhp.completion.autoImport |
Offer auto-import in completion and code actions |
tyhp.binary.installMode |
How the CLI was installed: path, global, or extension (set automatically) |
tyhp.binary.autoUpdate |
Keep an extension-installed CLI up to date |
tyhp.binary.pinnedVersion |
Keep an extension-installed CLI on one release tag, such as 805.1.2-beta.4 |
tyhp.xdebugProxy.idePort |
Port PHP Debug listens on (default 9003, or xdebugProxy.idePort in tyhp.json) |
tyhp.xdebugProxy.xdebugPort |
Port XDebug connects to (default 9004, or xdebugProxy.xdebugPort in tyhp.json) |
tyhp.xdebugProxy.sourceMapDir |
Directory of .php.map files, if not the project's output path |
Troubleshooting
- No diagnostics or completion in a file: the file may not match any project's
includeglobs. The status bar shows not in a Tyhp project in that case. - Language server errors: check Output → Tyhp Language Server. Set
tyhp.languageServer.tracetomessagesto log the protocol. An outdated CLI can fail to start the server; update it with Tyhp: Install / Update CLI. - Breakpoints stay in the
.phpfile: enablebuild.generateSourcemapand rebuild. Proxy logs are in Output → Tyhp XDebug Proxy. - Proxy port already in use: stop the other process, or change
tyhp.xdebugProxy.idePort/tyhp.xdebugProxy.xdebugPort.