gotlin/tools/vscode-gotlin/package.json

75 lines
1.8 KiB
JSON

{
"name": "gotlin-vscode",
"displayName": "Gotlin",
"description": "Gotlin language support with syntax highlighting, snippets, and LSP integration",
"version": "0.1.0",
"publisher": "local",
"license": "UNLICENSED",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:gotlin"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "gotlin",
"aliases": [
"Gotlin",
"gotlin"
],
"extensions": [
".gt"
],
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "gotlin",
"path": "./snippets/gotlin.code-snippets"
}
],
"grammars": [
{
"language": "gotlin",
"scopeName": "source.gotlin",
"path": "./syntaxes/gotlin.tmLanguage.json"
}
],
"configuration": {
"title": "Gotlin",
"properties": {
"gotlin.serverPath": {
"type": "string",
"default": "",
"description": "Absolute path to the gotlin-lsp binary. If empty, the extension tries <workspace>/bin/gotlin-lsp first, then 'gotlin-lsp' on PATH."
},
"gotlin.goplsPath": {
"type": "string",
"default": "",
"description": "Absolute path to gopls. If empty, gotlin-lsp tries 'gopls' on PATH."
}
}
}
},
"scripts": {
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "node scripts/validate.js",
"check": "npm run build && npm test"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/node": "^20.14.10",
"@types/vscode": "^1.90.0",
"typescript": "^5.5.4"
}
}