LaTeX-Workshop/package.json
2017-03-29 08:28:42 +08:00

229 lines
6.1 KiB
JSON

{
"name": "latex-workshop",
"displayName": "LaTeX Workshop",
"description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.",
"icon": "icon.png",
"version": "1.1.2",
"publisher": "James-Yu",
"license": "MIT",
"homepage": "https://github.com/James-Yu/LaTeX-Workshop",
"repository": {
"type": "git",
"url": "https://github.com/James-Yu/LaTeX-Workshop.git"
},
"engines": {
"vscode": "^1.8.0"
},
"categories": [
"Languages",
"Snippets"
],
"keywords": [
"latex",
"tex",
"compile",
"preview",
"hint"
],
"activationEvents": [
"onLanguage:latex"
],
"main": "./out/src/main",
"contributes": {
"languages": [
{
"id": "tex",
"aliases": [
"TeX",
"tex"
],
"extensions": [
".sty",
".cls",
".bbx",
".cbx"
],
"configuration": "./syntax/syntax.json"
},
{
"id": "latex",
"aliases": [
"LaTeX",
"latex"
],
"extensions": [
".tex"
],
"configuration": "./syntax/syntax.json"
},
{
"id": "bibtex",
"aliases": [
"BibTeX",
"bibtex"
],
"extensions": [
".bib"
]
},
{
"id": "latex-beamer",
"aliases": [
"LaTeX Beamer"
],
"configuration": "./syntax/syntax.json"
},
{
"id": "latex-memoir",
"aliases": [
"LaTeX Memoir"
],
"configuration": "./syntax/syntax.json"
},
{
"id": "latex-log",
"aliases": [
"LaTeX Log"
],
"extensions": [
".log"
]
}
],
"grammars": [
{
"language": "tex",
"scopeName": "text.tex",
"path": "./syntax/TeX.plist"
},
{
"language": "latex",
"scopeName": "text.tex.latex",
"path": "./syntax/LaTeX.plist"
},
{
"language": "bibtex",
"scopeName": "text.bibtex",
"path": "./syntax/Bibtex.plist"
},
{
"language": "latex-beamer",
"scopeName": "text.tex.latex.beamer",
"path": "./syntax/LaTeX Beamer.plist"
},
{
"language": "latex-memoir",
"scopeName": "text.tex.latex.memoir",
"path": "./syntax/LaTeX Memoir.plist"
},
{
"language": "latex-log",
"scopeName": "text.log.latex",
"path": "./syntax/LaTeX Log.plist"
}
],
"commands": [
{
"command": "latex-workshop.build",
"title": "Build LaTeX project"
},
{
"command": "latex-workshop.view",
"title": "View PDF file in web page"
},
{
"command": "latex-workshop.tab",
"title": "View PDF file in new tab"
},
{
"command": "latex-workshop.synctex",
"title": "SyncTeX from LaTeX to PDF"
}
],
"configuration": {
"type": "object",
"title": "LaTeX Workshop configuration",
"properties": {
"latex-workshop.toolchain": {
"type": "array",
"default": ["latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf %DOC%"],
"description": "LaTeX toolchain to build project.\nThis property defines the sequence of commands LaTeX Workshop will execute to build the LaTeX project. By default it tries latexmk to compile to PDF.\nPlaceholder %DOC% is used to represent the root LaTeX file name (without '.tex' extension), and will be replaced when executing."
},
"latex-workshop.build_after_save": {
"type": "boolean",
"default": true,
"description": "Build LaTeX after saving LaTeX source file.\nThis property defines whether LaTeX Workshop will execute the LaTeX toolchain command(s) to build the project after new LaTeX contents are saved."
},
"latex-workshop.linter": {
"type": "boolean",
"default": false,
"description": "Lint LaTeX when no document changes for a defined period of time."
},
"latex-workshop.linter_command": {
"type": "string",
"default": "chktex -q -v0 %DOC%",
"description": "Linter command to check LaTeX syntax in real time.\nNow supports chktex.\nPlaceholder %DOC% is used to represent the root LaTeX file name (with extension)."
},
"latex-workshop.linter_interval": {
"type": "number",
"default": "2000",
"description": "Defines the time interval in milliseconds between invoking LaTeX linter"
},
"latex-workshop.show_debug_log": {
"type": "boolean",
"default": true,
"description": "Display LaTeX Workshop debug log in output panel.\nThis property defines whether LaTeX Workshop will output its debug log to the log panel."
}
}
},
"menus": {
"editor/context": [
{
"when": "resourceLangId == latex",
"command": "latex-workshop.build",
"group": "navigation@100"
},
{
"when": "resourceLangId == latex",
"command": "latex-workshop.view",
"group": "navigation@101"
},
{
"when": "resourceLangId == latex",
"command": "latex-workshop.tab",
"group": "navigation@102"
},
{
"when": "resourceLangId == latex",
"command": "latex-workshop.synctex",
"group": "navigation@103"
}
]
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"capabilities": {
"completionProvider": {
"resolveProvider": "true"
}
},
"dependencies": {
"glob": "^7.1.1",
"hasbin": "^1.2.3",
"open": "^0.0.5",
"tmp": "^0.0.31",
"ws": "^1.1.1"
},
"devDependencies": {
"typescript": "^2.0.3",
"vscode": "^1.0.0",
"mocha": "^2.3.3",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32"
}
}