The extension now probes '<serverPath> --version' on activation and refuses to start (with a clear message) when testium is older than 0.2.0 — the release that introduced 'testium lsp'. Unreadable version -> warn but proceed; binary not found -> actionable error. Minimal component-wise comparator, no extra dep. Also add the repository field and an EUPL-1.2 LICENSE file (Open VSX prerequisites). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
75 lines
1.9 KiB
JSON
75 lines
1.9 KiB
JSON
{
|
|
"name": "testium-assist",
|
|
"displayName": "Testium Assist",
|
|
"description": "Language support for testium .tum test scripts. Completion, hover and diagnostics powered by the testium LSP server (`testium lsp`).",
|
|
"version": "0.1.0",
|
|
"publisher": "testium",
|
|
"license": "EUPL-1.2",
|
|
"icon": "icon.png",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.beafrancois.fr/v-and-v/testium_assist.git"
|
|
},
|
|
"engines": {
|
|
"vscode": "^1.80.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"activationEvents": [
|
|
"onLanguage:tum"
|
|
],
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "tum",
|
|
"aliases": [
|
|
"Testium TUM",
|
|
"tum"
|
|
],
|
|
"extensions": [
|
|
".tum"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "tum",
|
|
"scopeName": "source.tum",
|
|
"path": "./syntaxes/tum.tmLanguage.json"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"title": "Testium Assist",
|
|
"properties": {
|
|
"testium.serverPath": {
|
|
"type": "string",
|
|
"default": "testium",
|
|
"description": "Path to the testium executable used to start the language server (`<path> lsp`). Defaults to looking up `testium` on $PATH."
|
|
},
|
|
"testium.trace.server": {
|
|
"type": "string",
|
|
"enum": ["off", "messages", "verbose"],
|
|
"default": "off",
|
|
"description": "Trace the LSP communication between VSCode and the testium server in the Output panel."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"compile": "tsc -p .",
|
|
"watch": "tsc -p . --watch",
|
|
"vscode:prepublish": "npm run compile"
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"@types/vscode": "^1.80.0",
|
|
"typescript": "^5.4.0"
|
|
}
|
|
}
|