{
	"name": "vscode-office",
	"displayName": "Office Viewer",
	"description": "View word,excel files in vscode.",
	"version": "2.0.2",
	"publisher": "cweijan",
	"icon": "images/icon.png",
	"engines": {
		"vscode": "^1.40.0"
	},
	"keywords": [
		"pdf",
		"word",
		"markdown",
		"xlsx",
		"excel"
	],
	"categories": [
		"Visualization",
		"Other"
	],
	"bugs": {
		"url": "https://github.com/cweijan/vscode-office/issues",
		"email": "cweijan@163.com"
	},
	"homepage": "https://github.com/cweijan/vscode-office/blob/master/README.md",
	"repository": {
		"type": "git",
		"url": "https://github.com/cweijan/vscode-office.git"
	},
	"activationEvents": [
		"*"
	],
	"main": "./out/extension.js",
	"contributes": {
		"themes": [
			{
				"label": "One Dark Modern",
				"uiTheme": "vs-dark",
				"path": "./theme/OneDark-Modern.json"
			}
		],
		"markdown.previewStyles": [
			"./theme/github-markdown.css"
		],
		"iconThemes": [
			{
				"id": "material-icon-theme",
				"label": "Material Icon Theme",
				"path": "./dist/material-icons.json",
				"_watch": true
			}
		],
		"languages": [
			{
				"id": "reg",
				"aliases": [
					"REG",
					"reg"
				],
				"extensions": [
					".reg",
					".REG"
				],
				"configuration": "./language/reg-language-configuration.json"
			},
			{
				"id": "http",
				"aliases": [
					"HTTP",
					"Http",
					"http"
				],
				"extensions": [
					".http",
					".rest"
				],
				"firstLine": "^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|CONNECT|TRACE)\\s+(.*?)HTTP/[0-9\\.]+$",
				"configuration": "./language/http-language-configuration.json"
			}
		],
		"grammars": [
			{
				"language": "reg",
				"scopeName": "source.reg",
				"path": "./syntaxes/reg.tmLanguage"
			},
			{
				"language": "http",
				"scopeName": "source.http",
				"path": "./syntaxes/http.tmLanguage.json"
			}
		],
		"snippets": [
			{
				"language": "http",
				"path": "./snippets/http.json"
			}
		],
		"commands": [
			{
				"command": "rest-client.request",
				"title": "Send Request",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.rerun-last-request",
				"title": "Rerun Last Request",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.cancel-request",
				"title": "Cancel Request",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.switch-environment",
				"title": "Switch Environment",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.history",
				"title": "View Request History",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.clear-history",
				"title": "Clear Request History",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.save-response",
				"title": "Save Full Response",
				"icon": {
					"light": "./images/save.svg",
					"dark": "./images/save-inverse.svg"
				},
				"category": "Rest Client"
			},
			{
				"command": "rest-client.save-response-body",
				"title": "Save Response Body",
				"icon": {
					"light": "./images/save-body.svg",
					"dark": "./images/save-body-inverse.svg"
				},
				"category": "Rest Client"
			},
			{
				"command": "rest-client.copy-response-body",
				"title": "Copy Response Body",
				"icon": {
					"light": "./images/copy.svg",
					"dark": "./images/copy-inverse.svg"
				},
				"category": "Rest Client"
			},
			{
				"command": "rest-client.generate-codesnippet",
				"title": "Generate Code Snippet",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.copy-codesnippet",
				"title": "Copy Code Snippet",
				"icon": {
					"light": "./images/copy.svg",
					"dark": "./images/copy-inverse.svg"
				},
				"category": "Rest Client"
			},
			{
				"command": "rest-client.copy-request-as-curl",
				"title": "Copy Request As cURL",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.clear-aad-token-cache",
				"title": "Clear Azure AD Token Cache",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.fold-response",
				"title": "Fold Response",
				"category": "Rest Client"
			},
			{
				"command": "rest-client.unfold-response",
				"title": "Unfold Response",
				"category": "Rest Client"
			},
			{
				"command": "office.reg.jumpToKey",
				"title": "REG: Jump to registry key"
			},
			{
				"command": "office.markdown.paste",
				"title": "Enhance pater in markdown"
			},
			{
				"command": "office.html.preview",
				"title": "Preview HTML"
			}
		],
		"keybindings": [
			{
				"command": "office.markdown.paste",
				"key": "ctrl+v",
				"when": "!terminalFocus && !filesExplorerFocus"
			},
			{
				"command": "office.html.preview",
				"key": "ctrl+shift+v",
				"when": "editorTextFocus && editorLangId == html"
			}
		],
		"menus": {
			"commandPalette": [
				{
					"command": "rest-client.fold-response",
					"when": "httpResponsePreviewFocus"
				},
				{
					"command": "rest-client.unfold-response",
					"when": "httpResponsePreviewFocus"
				},
				{
					"command": "rest-client.save-response",
					"when": "httpResponsePreviewFocus"
				},
				{
					"command": "rest-client.save-response-body",
					"when": "httpResponsePreviewFocus"
				},
				{
					"command": "rest-client.copy-response-body",
					"when": "httpResponsePreviewFocus"
				},
				{
					"command": "rest-client.copy-codesnippet",
					"when": "codeSnippetPreviewFocus"
				}
			],
			"editor/title": [
				{
					"when": "httpResponsePreviewFocus",
					"command": "rest-client.save-response",
					"group": "navigation@1"
				},
				{
					"when": "httpResponsePreviewFocus",
					"command": "rest-client.save-response-body",
					"group": "navigation@2"
				},
				{
					"when": "httpResponsePreviewFocus",
					"command": "rest-client.copy-response-body",
					"group": "navigation@3"
				},
				{
					"when": "httpResponsePreviewFocus",
					"command": "rest-client.fold-response",
					"group": "1_rest-client@1"
				},
				{
					"when": "httpResponsePreviewFocus",
					"command": "rest-client.unfold-response",
					"group": "1_rest-client@2"
				},
				{
					"when": "codeSnippetPreviewFocus",
					"command": "rest-client.copy-codesnippet",
					"group": "navigation"
				}
			],
			"editor/context": [
				{
					"command": "office.html.preview",
					"group": "navigation@1",
					"when": "editorTextFocus && editorLangId == html"
				},
				{
					"command": "rest-client.request",
					"when": "editorTextFocus && editorLangId == http",
					"group": "rest-client@1"
				},
				{
					"command": "rest-client.generate-codesnippet",
					"when": "editorTextFocus && editorLangId == http",
					"group": "rest-client@2"
				},
				{
					"command": "rest-client.copy-request-as-curl",
					"when": "editorTextFocus && editorLangId == http",
					"group": "rest-client@3"
				}
			]
		},
		"customEditors": [
			{
				"viewType": "cweijan.officeViewer",
				"displayName": "Office Viewer",
				"selector": [
					{
						"filenamePattern": "*.xlsx"
					},
					{
						"filenamePattern": "*.csv"
					},
					{
						"filenamePattern": "*.xls"
					},
					{
						"filenamePattern": "*.docx"
					},
					{
						"filenamePattern": "*.psd"
					},
					{
						"filenamePattern": "*.svg"
					},
					{
						"filenamePattern": "*.epub"
					},
					{
						"filenamePattern": "*.xmind"
					},
					{
						"filenamePattern": "*.pdf"
					},
					{
						"filenamePattern": "*.ttf"
					},
					{
						"filenamePattern": "*.woff"
					},
					{
						"filenamePattern": "*.otf"
					},
					{
						"filenamePattern": "*.jpg"
					},
					{
						"filenamePattern": "*.png"
					},
					{
						"filenamePattern": "*.gif"
					},
					{
						"filenamePattern": "*.apng"
					},
					{
						"filenamePattern": "*.apng"
					},
					{
						"filenamePattern": "*.bmp"
					},
					{
						"filenamePattern": "*.ico"
					},
					{
						"filenamePattern": "*.cur"
					},
					{
						"filenamePattern": "*.jpeg"
					},
					{
						"filenamePattern": "*.pjpeg"
					},
					{
						"filenamePattern": "*.pjp"
					},
					{
						"filenamePattern": "*.tif"
					},
					{
						"filenamePattern": "*.tiff"
					},
					{
						"filenamePattern": "*.webp"
					},
					{
						"filenamePattern": "*.swf"
					}
				]
			},
			{
				"viewType": "cweijan.markdownViewer",
				"displayName": "Markdown Viewer",
				"selector": [
					{
						"filenamePattern": "*.md"
					},
					{
						"filenamePattern": "*.puml"
					},
					{
						"filenamePattern": "*.plantuml"
					},
					{
						"filenamePattern": "*.pu"
					}
				]
			},
			{
				"viewType": "cweijan.htmlViewer",
				"displayName": "Html Viewer",
				"priority": "option",
				"selector": [
					{
						"filenamePattern": "*.html"
					},
					{
						"filenamePattern": "*.htm"
					}
				]
			},
			{
				"viewType": "cweijan.classViewer",
				"displayName": "Java Decompiler",
				"priority": "option",
				"selector": [
					{
						"filenamePattern": "*.class"
					}
				]
			}
		],
		"configuration": {
			"type": "object",
			"title": "Office",
			"properties": {
				"vscode-office.markdownType": {
					"type": "string",
					"enum": [
						"hyperMD",
						"vditor",
						"auto"
					],
					"default": "auto",
					"description": "Set markdown viewer type."
				},
				"vscode-office.viewAbsoluteLocal": {
					"type": "boolean",
					"default": false,
					"description": "Support view absolute path image from markdown viewer."
				},
				"vscode-office.autoTheme": {
					"type": "boolean",
					"default": false,
					"description": "Viewer follow vscode theme."
				}
			}
		}
	},
	"scripts": {
		"vscode:prepublish": "npm run build",
		"publish": "vsce publish --yarn",
		"compile": "tsc -p ./",
		"watch": "tsc -watch -p ./",
		"install": "npm i --ignore-scripts",
		"dev": "webpack --progress",
		"build": "webpack -p --progress"
	},
	"devDependencies": {
		"@types/node": "^13.11.0",
		"@types/node-fetch": "^2.5.7",
		"@types/vscode": "^1.40.0",
		"clean-webpack-plugin": "^3.0.0",
		"copy-webpack-plugin": "^6.2.1",
		"css-loader": "^3.5.3",
		"file-loader": "^6.0.0",
		"style-loader": "^1.2.1",
		"ts-loader": "^7.0.5",
		"typescript": "^3.8.3",
		"url-loader": "^4.1.0",
		"webpack": "^4.43.0",
		"webpack-cli": "^3.3.11"
	},
	"dependencies": {
		"cheerio": "^1.0.0-rc.3",
		"chrome-finder": "^1.0.7",
		"highlight.js": "^10.1.2",
		"mammoth": "^1.4.13",
		"markdown-it": "^11.0.0",
		"markdown-it-anchor": "^6.0.0",
		"markdown-it-checkbox": "^1.1.0",
		"markdown-it-katex": "^2.0.3",
		"markdown-it-named-headers": "0.0.4",
		"markdown-it-plantuml": "^1.0.0",
		"markdown-it-toc-done-right": "^4.1.0",
		"mustache": "^4.0.1",
		"node-fetch": "^2.6.1",
		"pdf-lib": "^1.11.2",
		"puppeteer": "^5.2.1"
	}
}
