mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
110 lines
2.2 KiB
JSON
110 lines
2.2 KiB
JSON
{
|
|
"name": "slint",
|
|
"displayName": "Slint",
|
|
"description": "Slint Language extension",
|
|
"version": "0.2.5",
|
|
"publisher": "Slint",
|
|
"icon": "extension-logo.png",
|
|
"license": "GPL-3.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/slint-ui/slint"
|
|
},
|
|
"engines": {
|
|
"vscode": "^1.52.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages"
|
|
],
|
|
"preview": true,
|
|
"activationEvents": [
|
|
"onLanguage:slint"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "slint",
|
|
"aliases": [
|
|
"Slint"
|
|
],
|
|
"extensions": [
|
|
".slint",
|
|
".60"
|
|
],
|
|
"configuration": "language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "slint",
|
|
"scopeName": "source.slint",
|
|
"path": "./slint.tmLanguage.json"
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "slint.showPreview",
|
|
"title": "Show Preview",
|
|
"category": "Slint"
|
|
},
|
|
{
|
|
"command": "slint.reload",
|
|
"title": "Restart server",
|
|
"category": "Slint"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "slint.showPreview",
|
|
"when": "editorLangId == slint"
|
|
},
|
|
{
|
|
"command": "slint.reload"
|
|
}
|
|
]
|
|
},
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "Slint",
|
|
"properties": {
|
|
"slint.lsp-args": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "The command line arguments passed to the Slint LSP server"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "^7"
|
|
},
|
|
"files": [
|
|
"bin/slint-lsp-*"
|
|
],
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"local-package": "mkdir -p bin && cp ../../target/debug/slint-lsp bin/ && npx vsce package",
|
|
"watch": "tsc -watch -p ./",
|
|
"pretest": "npm run compile && npm run lint",
|
|
"lint": "eslint src --ext ts",
|
|
"test": "node ./out/test/runTest.js"
|
|
},
|
|
"devDependencies": {
|
|
"@types/glob": "^7.1.3",
|
|
"@types/mocha": "^8.0.4",
|
|
"@types/node": "^12.11.7",
|
|
"@types/vscode": "^1.52.0",
|
|
"@typescript-eslint/eslint-plugin": "^4.9.0",
|
|
"@typescript-eslint/parser": "^4.9.0",
|
|
"eslint": "^7.15.0",
|
|
"glob": "^7.1.6",
|
|
"mocha": "^8.1.3",
|
|
"typescript": "^4.1.2",
|
|
"vscode-test": "^1.4.1"
|
|
}
|
|
}
|