vscode-texinfo/package.json

208 lines
7.5 KiB
JSON

{
"name": "texinfo",
"displayName": "Texinfo Language Support",
"description": "Provides basic editing experience for Texinfo documents, including syntax highlighting, code completion, HTML preview, etc.",
"publisher": "cismonx",
"version": "0.1.1",
"author": {
"name": "CismonX",
"email": "admin@cismon.net",
"url": "https://cismon.net"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/texinfo-lang/vscode-texinfo"
},
"icon": "assets/texinfo.png",
"devDependencies": {
"@types/node": "^14.14.17",
"@types/terser-webpack-plugin": "^5.0.2",
"@types/vscode": "~1.40.0",
"@types/webpack": "^4.41.25",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"cson": "^7.20.0",
"eslint": "^7.16.0",
"json": "^10.0.0",
"language-texinfo": "^1.0.0",
"node-html-parser": "^2.0.1",
"ts-loader": "^8.0.13",
"ts-node": "^9.1.1",
"typescript": "^4.1.3",
"webpack": "^5.11.1",
"webpack-cli": "^4.3.0"
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"build": "webpack --mode development",
"prepare": "sh ./scripts/prepare.sh",
"lint": "eslint --ext ts --fix src",
"watch": "webpack --mode development --watch"
},
"eslintConfig": {
"root": true,
"ignorePatterns": "out/**",
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"comma-dangle": [
"warn",
"always-multiline"
],
"max-len": [
"warn",
{
"code": 120
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/semi": "warn"
}
},
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:texinfo"
],
"contributes": {
"commands": [
{
"command": "texinfo.preview.show",
"title": "Show preview",
"icon": "$(open-preview)"
},
{
"command": "texinfo.preview.goto",
"title": "Goto node in preview"
}
],
"menus": {
"commandPalette": [
{
"command": "texinfo.preview.show",
"when": "editorLangId == texinfo",
"group": "navigation"
},
{
"command": "texinfo.preview.goto",
"when": "false",
"group": "navigation"
}
],
"editor/title": [
{
"command": "texinfo.preview.show",
"when": "editorLangId == texinfo",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "texinfo.preview.show",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "editorLangId == texinfo"
}
],
"configuration": {
"title": "Texinfo",
"properties": {
"texinfo.makeinfo": {
"type": "string",
"default": "makeinfo",
"markdownDescription": "Path to the `makeinfo` (or `texi2any`) command. If not located in `$PATH`, an absolute path should be specified.\n\nThe value should not contain any command-line arguments, just the filename."
},
"texinfo.enableCodeLens": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable code lens on node identifiers which jumps to the corresponding nodes in preview."
},
"texinfo.completion.enableSnippets": {
"type": "boolean",
"default": true,
"markdownDescription": "Show snippets in code completion items.\n\nIf disabled, only commands are shown."
},
"texinfo.completion.hideSnippetCommands": {
"type": "boolean",
"default": true,
"markdownDescription": "When snippet is enabled, hide the snippets' corresponding commands from completion items."
},
"texinfo.preview.noHeaders": {
"type": "boolean",
"default": false,
"markdownDescription": "Suppress node separators in preview.\n\nThis corresponds to the `--no-headers` option of `makeinfo`."
},
"texinfo.preview.maxSize": {
"type": "integer",
"default": "2",
"minimum": 1,
"maximum": 16,
"markdownDescription": "Max allowed size (in MiB) for the preview document."
},
"texinfo.preview.errorLimit": {
"type": "integer",
"default": 100,
"minimum": 0,
"markdownDescription": "Max number of errors before quit when trying to display preview.\n\nThis corresponds to the `--error-limit=NUM` option of `makeinfo`."
},
"texinfo.preview.force": {
"type": "boolean",
"default": false,
"markdownDescription": "Preserve preview even if errors.\n\nThis corresponds to the `--force` option of `makeinfo`."
},
"texinfo.preview.noValidation": {
"type": "boolean",
"default": false,
"markdownDescription": "Supress node cross-reference validation.\n\nThis corresponds to the `--no-validate` option of `makeinfo`."
},
"texinfo.preview.noWarnings": {
"type": "boolean",
"default": false,
"markdownDescription": "Suppress warnings.\n\nThis corresponds to the `--no-warn` option of `makeinfo`."
},
"texinfo.preview.displayImage": {
"type": "boolean",
"default": false,
"markdownDescription": "Display images in in preview.\n\nIf image display is not needed, turn off this option to improve preview performance."
}
}
},
"languages": [
{
"id": "texinfo",
"aliases": [
"Texinfo"
],
"extensions": [
".texi",
".texinfo",
".txi"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "texinfo",
"scopeName": "text.texinfo",
"path": "./out/grammars/texinfo.json"
}
]
}
}