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]>
105 lines
2.3 KiB
JSON
105 lines
2.3 KiB
JSON
{
|
|
"name": "zap-ls-client",
|
|
"description": "A language client of the ZAP Language Server",
|
|
"author": "Atsushi Tomida",
|
|
"license": "MIT",
|
|
"version": "0.1.4",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/zap-proto/lsp"
|
|
},
|
|
"publisher": "tomitty",
|
|
"categories": [],
|
|
"keywords": [
|
|
"capnp",
|
|
"cap'n proto",
|
|
"capnproto",
|
|
"zap-ls",
|
|
"capnp-vscode",
|
|
"zap-ls-client"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.75.0"
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:zap"
|
|
],
|
|
"main": "./client/out/extension",
|
|
"contributes": {
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "Cap'n Proto",
|
|
"properties": {
|
|
"zap-ls-client.languageServer.path": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Launch command of Cap'n Proto language server executable"
|
|
},
|
|
"zap-ls-client.compiler.path": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Path to the Cap'n Proto compiler executable"
|
|
},
|
|
"zap-ls-client.compiler.importPaths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": [],
|
|
"description": "Additional import paths for Cap'n Proto schemas"
|
|
},
|
|
"zap-ls-client.server.extraEnv": {
|
|
"type": [
|
|
"null",
|
|
"object"
|
|
],
|
|
"additionalProperties": {
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
},
|
|
"default": null,
|
|
"markdownDescription": "Extra environment variables that will be passed to the zap-ls executable. Useful for passing e.g. `CPP_LOG=lsp_server=info` for debugging."
|
|
}
|
|
}
|
|
},
|
|
"languages": [
|
|
{
|
|
"id": "zap",
|
|
"extensions": [
|
|
".zap",
|
|
".capnp"
|
|
],
|
|
"aliases": [
|
|
"ZAP",
|
|
"zap",
|
|
"Cap'n Proto",
|
|
"capnp"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "node_modules/tsgo/bin/tsc -b",
|
|
"watch": "node_modules/tsgo/bin/tsc -b -w",
|
|
"lint": "eslint ./client/src --ext .ts,.tsx",
|
|
"postinstall": "cd client && npm install && cd ..",
|
|
"test": "node_modules/tsgo/bin/tsc -b && sh ./scripts/e2e.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mocha": "^10.0.6",
|
|
"@types/node": "^18.19.44",
|
|
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
"@typescript-eslint/parser": "^7.1.0",
|
|
"eslint": "^8.57.0",
|
|
"mocha": "^10.3.0",
|
|
"tsgo": "npm:[email protected]",
|
|
"typescript": "6.0.3"
|
|
},
|
|
"dependencies": {
|
|
"vscode-uri": "^3.0.8"
|
|
}
|
|
}
|