mirror of
https://github.com/zap-proto/lsp.git
synced 2026-10-30 15:04:44 +00:00
typescript 7.0.2 is the native compiler and exports no JavaScript API, so typescript-eslint cannot read it. It comes in aliased as tsgo and runs the build; typescript stays on the 6 line for the tools. The sample's tsconfigs never named strict or esModuleInterop, so TS7's defaults turned both on and reported 7 diagnostics against code that had always compiled loosely. They now say so: strict false, esModuleInterop true, and the CJS namespace import of mocha becomes a default import that interop can construct. Both compilers report 0 diagnostics. Co-authored-by: Hanzo Dev <[email protected]>
ZAP Language Support for VS Code
A VS Code extension that provides language support for ZAP schema files (built on Cap'n Proto).
Features
- Go to definition
- Diagnostics (error reporting)
Requirements
Extension Settings
This extension contributes the following settings:
zap-ls-client.languageServer.path: Path to the ZAP language server executable. If not specified, the extension will first look for a zap-ls binary in the extension directory, then search in the system PATH. For Linux x86_64 systems, the binary will be automatically downloaded if not found in either location.zap-ls-client.compiler.path: Path to the ZAP schema compiler executable. If not specified, it defaults to "zap" from the system PATH. When using a bundled version of zap-ls (built with -DUSE_BUNDLED_CAPNP_TOOL=ON), this setting is optional and the bundled compiler will be used automatically.zap-ls-client.compiler.importPaths: Additional import paths for ZAP schemas.zap-ls-client.server.extraEnv: Extra environment variables that will be passed to the zap-ls executable.CPP_LOG: Log level for the Cap'n Proto language server.- Example:
CPP_LOG=lsp_server=info: Set log level to info. - Default:
CPP_LOG=lsp_server=warning
- Example:
Example configuration:
To customize the client settings, edit the .vscode/settings.json file in your workspace as follows:
{
"zap-ls-client.languageServer.path": "/absolute/path/to/zap-ls",
"zap-ls-client.compiler.path": "zap",
"zap-ls-client.compiler.importPaths": [
"path/to/schema/imports"
],
"zap-ls-client.server.extraEnv": {
"CPP_LOG": "lsp_server=warning"
}
}
See example configuration for more details.