Files
2026-10-25 01:29:44 +02:00

74 lines
2.1 KiB
JSON

{
"name": "markdown-direct",
"displayName": "markdown-direct",
"description": "Open markdown directly in preview mode to read them",
"version": "0.0.1",
"engines": {
"vscode": "^1.140.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "markdown-direct.togglePreview",
"title": "md-direct",
"icon": "$(preview)"
}
],
"keybindings": [
{
"command": "markdown-direct.togglePreview",
"key": "ctrl+alt+p",
"mac": "cmd+alt+p",
"when": "resourceLangId == markdown || activeCustomEditorId == 'vscode.markdown-preview-editor'"
}
],
"menus": {
"editor/title": [
{
"command": "markdown-direct.togglePreview",
"when": "resourceLangId == markdown || activeCustomEditorId == 'vscode.markdown-preview-editor'",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "24.x",
"@types/vscode": "^1.140.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"@vscode/vsce": "^4.0.0",
"esbuild": "^0.28.1",
"eslint": "^10.5.0",
"npm-run-all": "^4.1.5",
"typescript": "^6.0.3",
"typescript-eslint": "^8.61.1"
},
"overrides": {
"diff": "^8.0.4",
"serialize-javascript": "^7.0.6"
}
}