Skip to content
Snippets Groups Projects
package.json 8.21 KiB
Newer Older
James-Yu's avatar
James-Yu committed
{
James-Yu's avatar
James-Yu committed
  "name": "latex-workshop",
  "displayName": "LaTeX Workshop",
  "description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.",
James-Yu's avatar
James-Yu committed
  "icon": "icon.png",
James-Yu's avatar
James-Yu committed
  "version": "1.4.2",
James-Yu's avatar
James-Yu committed
  "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": [
James-Yu's avatar
James-Yu committed
  ],
  "main": "./out/src/main",
  "contributes": {
    "languages": [
James-Yu's avatar
James-Yu committed
        "aliases": [
          "TeX",
          "tex"
        ],
        "extensions": [
          ".sty",
          ".cls",
          ".bbx",
          ".cbx"
        ],
        "configuration": "./syntax/syntax.json"
      },
James-Yu's avatar
James-Yu committed
      {
James-Yu's avatar
James-Yu committed
        "aliases": [
          "LaTeX",
          "latex"
        ],
        "extensions": [
          ".tex"
        ],
James-Yu's avatar
James-Yu committed
        "configuration": "./syntax/syntax.json"
James-Yu's avatar
James-Yu committed
        "aliases": [
          "BibTeX",
          "bibtex"
        ],
        "extensions": [
          ".bib"
        ]
      },
      {
        "id": "latex-beamer",
James-Yu's avatar
James-Yu committed
        "aliases": [
          "LaTeX Beamer"
        ],
        "configuration": "./syntax/syntax.json"
      },
      {
        "id": "latex-memoir",
James-Yu's avatar
James-Yu committed
        "aliases": [
          "LaTeX Memoir"
        ],
        "configuration": "./syntax/syntax.json"
      },
      {
James-Yu's avatar
James-Yu committed
        "aliases": [
          "LaTeX Log"
        ],
        "extensions": [
          ".log"
        ]
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
James-Yu's avatar
James-Yu committed
    "grammars": [
James-Yu's avatar
James-Yu committed
      {
James-Yu's avatar
James-Yu committed
        "scopeName": "text.tex",
        "path": "./syntax/TeX.plist"
      },
James-Yu's avatar
James-Yu committed
      {
        "language": "latex",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.tex.latex",
James-Yu's avatar
James-Yu committed
        "path": "./syntax/LaTeX.plist"
      },
      {
        "language": "bibtex",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.bibtex",
        "path": "./syntax/Bibtex.plist"
      },
      {
        "language": "latex-beamer",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.tex.latex.beamer",
        "path": "./syntax/LaTeX Beamer.plist"
      },
      {
        "language": "latex-memoir",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.tex.latex.memoir",
        "path": "./syntax/LaTeX Memoir.plist"
      },
      {
        "language": "latex-log",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.log.latex",
        "path": "./syntax/LaTeX Log.plist"
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
James-Yu's avatar
James-Yu committed
    "commands": [
      {
        "command": "latex-workshop.build",
        "title": "Build LaTeX project"
      },
      {
        "command": "latex-workshop.view",
James-Yu's avatar
James-Yu committed
        "title": "View PDF file in web page"
James-Yu's avatar
James-Yu committed
      },
      {
        "command": "latex-workshop.tab",
James-Yu's avatar
James-Yu committed
        "title": "View PDF file in new tab"
James-Yu's avatar
James-Yu committed
      {
        "command": "latex-workshop.synctex",
        "title": "SyncTeX from cursor"
      },
      {
        "command": "latex-workshop.clean",
        "title": "Clean up auxillary files of LaTeX project"
      },
      {
        "command": "latex-workshop.actions",
        "title": "LaTeX Workshop Actions"
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
James-Yu's avatar
James-Yu committed
    "configuration": {
      "type": "object",
      "title": "LaTeX Workshop configuration",
      "properties": {
James-Yu's avatar
James-Yu committed
        "latex-workshop.toolchain": {
James-Yu's avatar
James-Yu committed
          "type": "array",
          "default": [
            "latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf %DOC%"
          ],
James-Yu's avatar
James-Yu committed
          "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."
James-Yu's avatar
James-Yu committed
        },
James-Yu's avatar
James-Yu committed
        "latex-workshop.build_after_save": {
James-Yu's avatar
James-Yu committed
          "type": "boolean",
          "default": true,
James-Yu's avatar
James-Yu committed
          "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.clean_after_build": {
          "type": "boolean",
          "default": false,
          "description": "Delete LaTeX auxillary files after building project.\nThis property defines whether LaTeX Workshop will clean up all unnecessary files after building the project."
        },
        "latex-workshop.files_to_clean": {
          "type": "array",
          "default": [
            "*.aux",
            "*.bbl",
            "*.blg",
            "*.idx",
            "*.ind",
            "*.lof",
            "*.lot",
            "*.out",
            "*.toc",
            "*.acn",
            "*.acr",
            "*.alg",
            "*.glg",
            "*.glo",
            "*.gls",
            "*.ist",
            "*.fls",
            "*.log",
            "*.fdb_latexmk"
          ],
          "description": "Files to clean.\nThis property must be an array of strings. File globs such as *.removeme, something?.aux can be used."
        },
James-Yu's avatar
James-Yu committed
        "latex-workshop.linter": {
          "type": "boolean",
          "default": false,
          "description": "Enable linting LaTeX with ChkTeX.\nThe active document will be linted when no document changes for a defined period of time.\nThe full project will be linted from the root on file save."
James-Yu's avatar
James-Yu committed
        },
        "latex-workshop.linter_command_active_file": {
          "type": "array",
          "default": [
            "chktex",
            "-wall",
            "-n22",
            "-n30",
            "-e16",
            "-q",
            "-I0",
            "-f%f:%l:%c:%d:%k:%n:%m\n"
          ],
          "description": "Linter command to check LaTeX syntax of the current file state in real time with ChkTeX.\nCurrent file contents will be piped to the command through stdin.\nThe format string should be kept as shown in the default as this is the format the parser expects for successful parsing."
        },
        "latex-workshop.linter_command_root_file": {
          "type": "array",
          "default": [
            "chktex",
            "-wall",
            "-n22",
            "-n30",
            "-e16",
            "-q",
            "-f%f:%l:%c:%d:%k:%n:%m\n",
            "%DOC%"
          ],
          "description": "Linter command to check LaTeX syntax of the entire project from the root file with ChkTeX.\nPlaceholder %DOC% is used to represent the root LaTeX file name (with extension).\nThe format string should be kept as shown in the default as this is the format the parser expects for successful parsing."
James-Yu's avatar
James-Yu committed
        },
James-Yu's avatar
James-Yu committed
        "latex-workshop.linter_interval": {
          "type": "number",
          "default": 300,
          "description": "Defines the time interval in milliseconds between invoking LaTeX linter on the active file."
James-Yu's avatar
James-Yu committed
        },
        "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."
James-Yu's avatar
James-Yu committed
        }
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    },
    "menus": {
      "editor/context": [
        {
          "when": "resourceLangId == latex",
James-Yu's avatar
James-Yu committed
          "command": "latex-workshop.build",
          "group": "navigation@100"
        },
        {
          "when": "resourceLangId == latex",
          "command": "latex-workshop.synctex",
James-Yu's avatar
James-Yu committed
          "group": "navigation@101"
        },
        {
          "when": "resourceLangId == latex",
          "command": "latex-workshop.actions",
James-Yu's avatar
James-Yu committed
          "group": "navigation@102"
        }
      ]
James-Yu's avatar
James-Yu committed
    }
  },
  "scripts": {
    "vscode:prepublish": "tsc -p ./",
    "compile": "tsc -watch -p ./",
    "postinstall": "node ./node_modules/vscode/bin/install"
  },
  "capabilities": {
    "completionProvider": {
      "resolveProvider": "true"
James-Yu's avatar
James-Yu committed
    }
James-Yu's avatar
James-Yu committed
  },
  "dependencies": {
James-Yu's avatar
James-Yu committed
    "glob": "^7.1.1",
James-Yu's avatar
James-Yu committed
    "ws": "^1.1.1"
  },
  "devDependencies": {
James-Yu's avatar
James-Yu committed
James-Yu's avatar
James-Yu committed
  }
}