Skip to content
Snippets Groups Projects
package.json 11.7 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": "2.2.1",
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",
        "category": "LaTeX Workshop"
James-Yu's avatar
James-Yu committed
      },
      {
        "command": "latex-workshop.view",
        "title": "View PDF file in web page",
        "category": "LaTeX Workshop"
James-Yu's avatar
James-Yu committed
      },
      {
        "command": "latex-workshop.tab",
        "title": "View PDF file in new tab",
        "category": "LaTeX Workshop"
James-Yu's avatar
James-Yu committed
      {
        "command": "latex-workshop.synctex",
        "title": "SyncTeX from cursor",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.clean",
        "title": "Clean up auxillary files",
        "category": "LaTeX Workshop"
      {
        "command": "latex-workshop.citation",
        "title": "Open citation browser",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.log",
        "title": "Show LaTeX log",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.actions",
        "title": "LaTeX Workshop: All actions"
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
		"keybindings": [
			{
				"command": "latex-workshop.build",
				"key": "ctrl+l ctrl+b",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.view",
				"key": "ctrl+l ctrl+v",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.tab",
				"key": "ctrl+l ctrl+t",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.synctex",
				"key": "ctrl+l ctrl+s",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.clean",
				"key": "ctrl+l ctrl+c",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.citation",
				"key": "ctrl+l ctrl+i",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.log",
				"key": "ctrl+l ctrl+l",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			},
			{
				"command": "latex-workshop.actions",
				"key": "ctrl+l ctrl+a",
				"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
			}
		],
James-Yu's avatar
James-Yu committed
    "configuration": {
      "type": "object",
      "title": "LaTeX Workshop configuration",
      "properties": {
        "latex-workshop.latex.toolchain": {
James-Yu's avatar
James-Yu committed
          "type": "array",
          "default": [
            {
              "command": "latexmk",
              "args": [
                "-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.\n For a detailed explanation on how to customize your toolchain, please visit https://github.com/James-Yu/LaTeX-Workshop#toolchain."
James-Yu's avatar
James-Yu committed
        },
        "latex-workshop.latex.outputDir": {
          "type": "string",
          "default": "./",
          "description": "The directory where output files (e.g., PDF and SyncTeX files) are located.\nBoth relative and absolute pathes are supported. Relative path start from the root file location, so be ware if it is located in sub-directory."
        },
        "latex-workshop.latex.autoBuild.enabled": {
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.latex.clean.enabled": {
          "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.latex.clean.fileTypes": {
          "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."
        },
        "latex-workshop.synctex.path": {
          "type": "string",
          "default": "synctex",
          "description": "Define the location of SyncTeX executive file.\nAdditional arguments, e.g., synctex modes and position of click, will be appended to this command."
        "latex-workshop.chktex.enabled": {
James-Yu's avatar
James-Yu committed
          "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.chktex.path": {
          "type": "string",
          "default": "chktex",
          "description": "Define the location of ChkTeX executive file.\nThis command will be joint with `latex-workshop.linter_arguments_*` and required arguments to form a complete command of ChkTeX."
        "latex-workshop.chktex.args.active": {
          "type": "array",
          "default": [
            "-wall",
            "-n22",
            "-n30",
            "-e16",
            "-q"
          ],
          "description": "Linter arguments to check LaTeX syntax of the current file state in real time with ChkTeX.\nArguments must be in separate strings in the array. Additional arguments, i.e., `-I0 -f%f:%l:%c:%d:%k:%n:%m\\n` will be appended when constructing the command. Current file contents will be piped to the command through stdin."
        "latex-workshop.chktex.args.root": {
          "type": "array",
          "default": [
            "-wall",
            "-n22",
            "-n30",
            "-e16",
            "-q"
          ],
          "description": "Linter arguments to check LaTeX syntax of the entire project from the root file with ChkTeX.\nArguments must be in separate strings in the array. Additional arguments, i.e., `-f%f:%l:%c:%d:%k:%n:%m\\n %DOC%` will be appended when constructing the command."
James-Yu's avatar
James-Yu committed
        },
        "latex-workshop.chktex.interval": {
James-Yu's avatar
James-Yu committed
          "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.intellisense.citation.type": {
          "type": "string",
          "enum": [
            "inline",
            "browser"
          ],
          "default": "inline",
          "description": "Defines which type of hint to show when intellisense provides citation suggestions."
        },
        "latex-workshop.intellisense.citation.label": {
          "type": "string",
          "enum": [
            "bibtex key",
            "title",
            "authors"
          ],
          "default": "bibtex key",
          "description": "Defines what to show as suggestion labels when intellisense provides citation suggestions."
        },
        "latex-workshop.debug.showLog": {
          "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
  }
}