Path: blob/main/extensions/markdown-language-features/package.json
3290 views
{1"name": "markdown-language-features",2"displayName": "%displayName%",3"description": "%description%",4"version": "1.0.0",5"icon": "icon.png",6"publisher": "vscode",7"license": "MIT",8"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",9"engines": {10"vscode": "^1.70.0"11},12"main": "./out/extension",13"browser": "./dist/browser/extension",14"categories": [15"Programming Languages"16],17"activationEvents": [18"onLanguage:markdown",19"onLanguage:prompt",20"onLanguage:instructions",21"onLanguage:chatmode",22"onCommand:markdown.api.render",23"onCommand:markdown.api.reloadPlugins",24"onWebviewPanel:markdown.preview"25],26"capabilities": {27"virtualWorkspaces": true,28"untrustedWorkspaces": {29"supported": "limited",30"description": "%workspaceTrust%",31"restrictedConfigurations": [32"markdown.styles"33]34}35},36"contributes": {37"notebookRenderer": [38{39"id": "vscode.markdown-it-renderer",40"displayName": "Markdown it renderer",41"entrypoint": "./notebook-out/index.js",42"mimeTypes": [43"text/markdown",44"text/latex",45"text/x-css",46"text/x-html",47"text/x-json",48"text/x-typescript",49"text/x-abap",50"text/x-apex",51"text/x-azcli",52"text/x-bat",53"text/x-cameligo",54"text/x-clojure",55"text/x-coffee",56"text/x-cpp",57"text/x-csharp",58"text/x-csp",59"text/x-css",60"text/x-dart",61"text/x-dockerfile",62"text/x-ecl",63"text/x-fsharp",64"text/x-go",65"text/x-graphql",66"text/x-handlebars",67"text/x-hcl",68"text/x-html",69"text/x-ini",70"text/x-java",71"text/x-javascript",72"text/x-julia",73"text/x-kotlin",74"text/x-less",75"text/x-lexon",76"text/x-lua",77"text/x-m3",78"text/x-markdown",79"text/x-mips",80"text/x-msdax",81"text/x-mysql",82"text/x-objective-c/objective",83"text/x-pascal",84"text/x-pascaligo",85"text/x-perl",86"text/x-pgsql",87"text/x-php",88"text/x-postiats",89"text/x-powerquery",90"text/x-powershell",91"text/x-pug",92"text/x-python",93"text/x-r",94"text/x-razor",95"text/x-redis",96"text/x-redshift",97"text/x-restructuredtext",98"text/x-ruby",99"text/x-rust",100"text/x-sb",101"text/x-scala",102"text/x-scheme",103"text/x-scss",104"text/x-shell",105"text/x-solidity",106"text/x-sophia",107"text/x-sql",108"text/x-st",109"text/x-swift",110"text/x-systemverilog",111"text/x-tcl",112"text/x-twig",113"text/x-typescript",114"text/x-vb",115"text/x-xml",116"text/x-yaml",117"application/json"118]119}120],121"commands": [122{123"command": "_markdown.copyImage",124"title": "%markdown.copyImage.title%",125"category": "Markdown"126},127{128"command": "_markdown.openImage",129"title": "%markdown.openImage.title%",130"category": "Markdown"131},132{133"command": "markdown.showPreview",134"title": "%markdown.preview.title%",135"category": "Markdown",136"icon": {137"light": "./media/preview-light.svg",138"dark": "./media/preview-dark.svg"139}140},141{142"command": "markdown.showPreviewToSide",143"title": "%markdown.previewSide.title%",144"category": "Markdown",145"icon": "$(open-preview)"146},147{148"command": "markdown.showLockedPreviewToSide",149"title": "%markdown.showLockedPreviewToSide.title%",150"category": "Markdown",151"icon": "$(open-preview)"152},153{154"command": "markdown.showSource",155"title": "%markdown.showSource.title%",156"category": "Markdown",157"icon": "$(go-to-file)"158},159{160"command": "markdown.showPreviewSecuritySelector",161"title": "%markdown.showPreviewSecuritySelector.title%",162"category": "Markdown"163},164{165"command": "markdown.preview.refresh",166"title": "%markdown.preview.refresh.title%",167"category": "Markdown"168},169{170"command": "markdown.preview.toggleLock",171"title": "%markdown.preview.toggleLock.title%",172"category": "Markdown"173},174{175"command": "markdown.findAllFileReferences",176"title": "%markdown.findAllFileReferences%",177"category": "Markdown"178},179{180"command": "markdown.editor.insertLinkFromWorkspace",181"title": "%markdown.editor.insertLinkFromWorkspace%",182"category": "Markdown",183"enablement": "editorLangId == markdown && !activeEditorIsReadonly"184},185{186"command": "markdown.editor.insertImageFromWorkspace",187"title": "%markdown.editor.insertImageFromWorkspace%",188"category": "Markdown",189"enablement": "editorLangId == markdown && !activeEditorIsReadonly"190}191],192"menus": {193"webview/context": [194{195"command": "_markdown.copyImage",196"when": "webviewId == 'markdown.preview' && (webviewSection == 'image' || webviewSection == 'localImage')"197},198{199"command": "_markdown.openImage",200"when": "webviewId == 'markdown.preview' && webviewSection == 'localImage'"201}202],203"editor/title": [204{205"command": "markdown.showPreviewToSide",206"when": "editorLangId == markdown && !notebookEditorFocused && !hasCustomMarkdownPreview",207"alt": "markdown.showPreview",208"group": "navigation"209},210{211"command": "markdown.showSource",212"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'",213"group": "navigation"214},215{216"command": "markdown.preview.refresh",217"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'",218"group": "1_markdown"219},220{221"command": "markdown.preview.toggleLock",222"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'",223"group": "1_markdown"224},225{226"command": "markdown.showPreviewSecuritySelector",227"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'",228"group": "1_markdown"229}230],231"explorer/context": [232{233"command": "markdown.showPreview",234"when": "resourceLangId == markdown && !hasCustomMarkdownPreview",235"group": "navigation"236},237{238"command": "markdown.findAllFileReferences",239"when": "resourceLangId == markdown",240"group": "4_search"241}242],243"editor/title/context": [244{245"command": "markdown.showPreview",246"when": "resourceLangId == markdown && !hasCustomMarkdownPreview",247"group": "1_open"248},249{250"command": "markdown.findAllFileReferences",251"when": "resourceLangId == markdown"252}253],254"commandPalette": [255{256"command": "_markdown.openImage",257"when": "false"258},259{260"command": "_markdown.copyImage",261"when": "false"262},263{264"command": "markdown.showPreview",265"when": "editorLangId == markdown && !notebookEditorFocused",266"group": "navigation"267},268{269"command": "markdown.showPreviewToSide",270"when": "editorLangId == markdown && !notebookEditorFocused",271"group": "navigation"272},273{274"command": "markdown.showLockedPreviewToSide",275"when": "editorLangId == markdown && !notebookEditorFocused",276"group": "navigation"277},278{279"command": "markdown.showSource",280"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'",281"group": "navigation"282},283{284"command": "markdown.showPreviewSecuritySelector",285"when": "editorLangId == markdown && !notebookEditorFocused"286},287{288"command": "markdown.showPreviewSecuritySelector",289"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'"290},291{292"command": "markdown.preview.toggleLock",293"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'"294},295{296"command": "markdown.preview.refresh",297"when": "editorLangId == markdown && !notebookEditorFocused"298},299{300"command": "markdown.preview.refresh",301"when": "activeWebviewPanelId == 'markdown.preview' || activeCustomEditorId == 'vscode.markdown.preview.editor'"302},303{304"command": "markdown.findAllFileReferences",305"when": "editorLangId == markdown"306}307]308},309"keybindings": [310{311"command": "markdown.showPreview",312"key": "shift+ctrl+v",313"mac": "shift+cmd+v",314"when": "editorLangId == markdown && !notebookEditorFocused"315},316{317"command": "markdown.showPreviewToSide",318"key": "ctrl+k v",319"mac": "cmd+k v",320"when": "editorLangId == markdown && !notebookEditorFocused"321}322],323"configuration": {324"type": "object",325"title": "Markdown",326"order": 20,327"properties": {328"markdown.styles": {329"type": "array",330"items": {331"type": "string"332},333"default": [],334"description": "%markdown.styles.dec%",335"scope": "resource"336},337"markdown.preview.breaks": {338"type": "boolean",339"default": false,340"markdownDescription": "%markdown.preview.breaks.desc%",341"scope": "resource"342},343"markdown.preview.linkify": {344"type": "boolean",345"default": true,346"description": "%markdown.preview.linkify%",347"scope": "resource"348},349"markdown.preview.typographer": {350"type": "boolean",351"default": false,352"description": "%markdown.preview.typographer%",353"scope": "resource"354},355"markdown.preview.fontFamily": {356"type": "string",357"default": "-apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif",358"description": "%markdown.preview.fontFamily.desc%",359"scope": "resource"360},361"markdown.preview.fontSize": {362"type": "number",363"default": 14,364"description": "%markdown.preview.fontSize.desc%",365"scope": "resource"366},367"markdown.preview.lineHeight": {368"type": "number",369"default": 1.6,370"description": "%markdown.preview.lineHeight.desc%",371"scope": "resource"372},373"markdown.preview.scrollPreviewWithEditor": {374"type": "boolean",375"default": true,376"description": "%markdown.preview.scrollPreviewWithEditor.desc%",377"scope": "resource"378},379"markdown.preview.markEditorSelection": {380"type": "boolean",381"default": true,382"description": "%markdown.preview.markEditorSelection.desc%",383"scope": "resource"384},385"markdown.preview.scrollEditorWithPreview": {386"type": "boolean",387"default": true,388"description": "%markdown.preview.scrollEditorWithPreview.desc%",389"scope": "resource"390},391"markdown.preview.doubleClickToSwitchToEditor": {392"type": "boolean",393"default": true,394"description": "%markdown.preview.doubleClickToSwitchToEditor.desc%",395"scope": "resource"396},397"markdown.preview.openMarkdownLinks": {398"type": "string",399"default": "inPreview",400"description": "%configuration.markdown.preview.openMarkdownLinks.description%",401"scope": "resource",402"enum": [403"inPreview",404"inEditor"405],406"enumDescriptions": [407"%configuration.markdown.preview.openMarkdownLinks.inPreview%",408"%configuration.markdown.preview.openMarkdownLinks.inEditor%"409]410},411"markdown.links.openLocation": {412"type": "string",413"default": "currentGroup",414"description": "%configuration.markdown.links.openLocation.description%",415"scope": "resource",416"enum": [417"currentGroup",418"beside"419],420"enumDescriptions": [421"%configuration.markdown.links.openLocation.currentGroup%",422"%configuration.markdown.links.openLocation.beside%"423]424},425"markdown.suggest.paths.enabled": {426"type": "boolean",427"default": true,428"description": "%configuration.markdown.suggest.paths.enabled.description%",429"scope": "resource"430},431"markdown.suggest.paths.includeWorkspaceHeaderCompletions": {432"type": "string",433"default": "onDoubleHash",434"scope": "resource",435"markdownDescription": "%configuration.markdown.suggest.paths.includeWorkspaceHeaderCompletions%",436"enum": [437"never",438"onDoubleHash",439"onSingleOrDoubleHash"440],441"markdownEnumDescriptions": [442"%configuration.markdown.suggest.paths.includeWorkspaceHeaderCompletions.never%",443"%configuration.markdown.suggest.paths.includeWorkspaceHeaderCompletions.onDoubleHash%",444"%configuration.markdown.suggest.paths.includeWorkspaceHeaderCompletions.onSingleOrDoubleHash%"445]446},447"markdown.trace.server": {448"type": "string",449"scope": "window",450"enum": [451"off",452"messages",453"verbose"454],455"default": "off",456"description": "%markdown.trace.server.desc%"457},458"markdown.server.log": {459"type": "string",460"scope": "window",461"enum": [462"off",463"debug",464"trace"465],466"default": "off",467"description": "%markdown.server.log.desc%"468},469"markdown.editor.drop.enabled": {470"type": "string",471"scope": "resource",472"markdownDescription": "%configuration.markdown.editor.drop.enabled%",473"default": "smart",474"enum": [475"always",476"smart",477"never"478],479"markdownEnumDescriptions": [480"%configuration.markdown.editor.drop.enabled.always%",481"%configuration.markdown.editor.drop.enabled.smart%",482"%configuration.markdown.editor.drop.enabled.never%"483]484},485"markdown.editor.drop.copyIntoWorkspace": {486"type": "string",487"markdownDescription": "%configuration.markdown.editor.drop.copyIntoWorkspace%",488"default": "mediaFiles",489"enum": [490"mediaFiles",491"never"492],493"markdownEnumDescriptions": [494"%configuration.copyIntoWorkspace.mediaFiles%",495"%configuration.copyIntoWorkspace.never%"496]497},498"markdown.editor.filePaste.enabled": {499"type": "string",500"scope": "resource",501"markdownDescription": "%configuration.markdown.editor.filePaste.enabled%",502"default": "smart",503"enum": [504"always",505"smart",506"never"507],508"markdownEnumDescriptions": [509"%configuration.markdown.editor.filePaste.enabled.always%",510"%configuration.markdown.editor.filePaste.enabled.smart%",511"%configuration.markdown.editor.filePaste.enabled.never%"512]513},514"markdown.editor.filePaste.copyIntoWorkspace": {515"type": "string",516"markdownDescription": "%configuration.markdown.editor.filePaste.copyIntoWorkspace%",517"default": "mediaFiles",518"enum": [519"mediaFiles",520"never"521],522"markdownEnumDescriptions": [523"%configuration.copyIntoWorkspace.mediaFiles%",524"%configuration.copyIntoWorkspace.never%"525]526},527"markdown.editor.filePaste.videoSnippet": {528"type": "string",529"markdownDescription": "%configuration.markdown.editor.filePaste.videoSnippet%",530"default": "<video controls src=\"${src}\" title=\"${title}\"></video>"531},532"markdown.editor.filePaste.audioSnippet": {533"type": "string",534"markdownDescription": "%configuration.markdown.editor.filePaste.audioSnippet%",535"default": "<audio controls src=\"${src}\" title=\"${title}\"></audio>"536},537"markdown.editor.pasteUrlAsFormattedLink.enabled": {538"type": "string",539"scope": "resource",540"markdownDescription": "%configuration.markdown.editor.pasteUrlAsFormattedLink.enabled%",541"default": "smartWithSelection",542"enum": [543"always",544"smart",545"smartWithSelection",546"never"547],548"markdownEnumDescriptions": [549"%configuration.pasteUrlAsFormattedLink.always%",550"%configuration.pasteUrlAsFormattedLink.smart%",551"%configuration.pasteUrlAsFormattedLink.smartWithSelection%",552"%configuration.pasteUrlAsFormattedLink.never%"553]554},555"markdown.validate.enabled": {556"type": "boolean",557"scope": "resource",558"description": "%configuration.markdown.validate.enabled.description%",559"default": false560},561"markdown.validate.referenceLinks.enabled": {562"type": "string",563"scope": "resource",564"markdownDescription": "%configuration.markdown.validate.referenceLinks.enabled.description%",565"default": "warning",566"enum": [567"ignore",568"warning",569"error"570]571},572"markdown.validate.fragmentLinks.enabled": {573"type": "string",574"scope": "resource",575"markdownDescription": "%configuration.markdown.validate.fragmentLinks.enabled.description%",576"default": "warning",577"enum": [578"ignore",579"warning",580"error"581]582},583"markdown.validate.fileLinks.enabled": {584"type": "string",585"scope": "resource",586"markdownDescription": "%configuration.markdown.validate.fileLinks.enabled.description%",587"default": "warning",588"enum": [589"ignore",590"warning",591"error"592]593},594"markdown.validate.fileLinks.markdownFragmentLinks": {595"type": "string",596"scope": "resource",597"markdownDescription": "%configuration.markdown.validate.fileLinks.markdownFragmentLinks.description%",598"default": "inherit",599"enum": [600"inherit",601"ignore",602"warning",603"error"604]605},606"markdown.validate.ignoredLinks": {607"type": "array",608"scope": "resource",609"markdownDescription": "%configuration.markdown.validate.ignoredLinks.description%",610"items": {611"type": "string"612}613},614"markdown.validate.unusedLinkDefinitions.enabled": {615"type": "string",616"scope": "resource",617"markdownDescription": "%configuration.markdown.validate.unusedLinkDefinitions.description%",618"default": "hint",619"enum": [620"ignore",621"hint",622"warning",623"error"624]625},626"markdown.validate.duplicateLinkDefinitions.enabled": {627"type": "string",628"scope": "resource",629"markdownDescription": "%configuration.markdown.validate.duplicateLinkDefinitions.description%",630"default": "warning",631"enum": [632"ignore",633"warning",634"error"635]636},637"markdown.updateLinksOnFileMove.enabled": {638"type": "string",639"enum": [640"prompt",641"always",642"never"643],644"markdownEnumDescriptions": [645"%configuration.markdown.updateLinksOnFileMove.enabled.prompt%",646"%configuration.markdown.updateLinksOnFileMove.enabled.always%",647"%configuration.markdown.updateLinksOnFileMove.enabled.never%"648],649"default": "never",650"markdownDescription": "%configuration.markdown.updateLinksOnFileMove.enabled%",651"scope": "window"652},653"markdown.updateLinksOnFileMove.include": {654"type": "array",655"markdownDescription": "%configuration.markdown.updateLinksOnFileMove.include%",656"scope": "window",657"items": {658"type": "string",659"description": "%configuration.markdown.updateLinksOnFileMove.include.property%"660},661"default": [662"**/*.{md,mkd,mdwn,mdown,markdown,markdn,mdtxt,mdtext,workbook}",663"**/*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp,avif,tiff,svg,mp4}"664]665},666"markdown.updateLinksOnFileMove.enableForDirectories": {667"type": "boolean",668"default": true,669"description": "%configuration.markdown.updateLinksOnFileMove.enableForDirectories%",670"scope": "window"671},672"markdown.occurrencesHighlight.enabled": {673"type": "boolean",674"default": false,675"description": "%configuration.markdown.occurrencesHighlight.enabled%",676"scope": "resource"677},678"markdown.copyFiles.destination": {679"type": "object",680"markdownDescription": "%configuration.markdown.copyFiles.destination%",681"additionalProperties": {682"type": "string"683}684},685"markdown.copyFiles.overwriteBehavior": {686"type": "string",687"markdownDescription": "%configuration.markdown.copyFiles.overwriteBehavior%",688"default": "nameIncrementally",689"enum": [690"nameIncrementally",691"overwrite"692],693"markdownEnumDescriptions": [694"%configuration.markdown.copyFiles.overwriteBehavior.nameIncrementally%",695"%configuration.markdown.copyFiles.overwriteBehavior.overwrite%"696]697},698"markdown.preferredMdPathExtensionStyle": {699"type": "string",700"default": "auto",701"markdownDescription": "%configuration.markdown.preferredMdPathExtensionStyle%",702"enum": [703"auto",704"includeExtension",705"removeExtension"706],707"markdownEnumDescriptions": [708"%configuration.markdown.preferredMdPathExtensionStyle.auto%",709"%configuration.markdown.preferredMdPathExtensionStyle.includeExtension%",710"%configuration.markdown.preferredMdPathExtensionStyle.removeExtension%"711]712},713"markdown.editor.updateLinksOnPaste.enabled": {714"type": "boolean",715"markdownDescription": "%configuration.markdown.editor.updateLinksOnPaste.enabled%",716"scope": "resource",717"default": true718}719}720},721"configurationDefaults": {722"[markdown]": {723"editor.wordWrap": "on",724"editor.quickSuggestions": {725"comments": "off",726"strings": "off",727"other": "off"728}729}730},731"jsonValidation": [732{733"fileMatch": "package.json",734"url": "./schemas/package.schema.json"735}736],737"markdown.previewStyles": [738"./media/markdown.css",739"./media/highlight.css"740],741"markdown.previewScripts": [742"./media/index.js"743],744"customEditors": [745{746"viewType": "vscode.markdown.preview.editor",747"displayName": "Markdown Preview",748"priority": "option",749"selector": [750{751"filenamePattern": "*.md"752}753]754}755]756},757"scripts": {758"compile": "gulp compile-extension:markdown-language-features-languageService && gulp compile-extension:markdown-language-features && npm run build-preview && npm run build-notebook",759"watch": "npm run build-preview && gulp watch-extension:markdown-language-features watch-extension:markdown-language-features-languageService",760"vscode:prepublish": "npm run build-ext && npm run build-preview",761"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown-language-features ./tsconfig.json",762"build-notebook": "node ./esbuild-notebook.mjs",763"build-preview": "node ./esbuild-preview.mjs",764"compile-web": "npx webpack-cli --config extension-browser.webpack.config --mode none",765"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch"766},767"dependencies": {768"@vscode/extension-telemetry": "^0.9.8",769"dompurify": "^3.2.4",770"highlight.js": "^11.8.0",771"markdown-it": "^12.3.2",772"markdown-it-front-matter": "^0.2.4",773"morphdom": "^2.7.4",774"picomatch": "^2.3.1",775"punycode": "^2.3.1",776"vscode-languageclient": "^8.0.2",777"vscode-languageserver-textdocument": "^1.0.11",778"vscode-markdown-languageserver": "^0.5.0-alpha.12",779"vscode-uri": "^3.0.3"780},781"devDependencies": {782"@types/dompurify": "^3.0.5",783"@types/lodash.throttle": "^4.1.3",784"@types/markdown-it": "12.2.3",785"@types/picomatch": "^2.3.0",786"@types/vscode-notebook-renderer": "^1.60.0",787"@types/vscode-webview": "^1.57.0",788"@vscode/markdown-it-katex": "^1.1.1",789"lodash.throttle": "^4.1.1",790"vscode-languageserver-types": "^3.17.2",791"vscode-markdown-languageservice": "^0.3.0-alpha.3"792},793"repository": {794"type": "git",795"url": "https://github.com/microsoft/vscode.git"796}797}798799800