Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code snippets #22

Open
wants to merge 8 commits into
base: release-2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
"typescript.tsc.autoDetect": "off",
"cSpell.words": ["mermaidchart"]
}
37 changes: 35 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
],
"main": "./out/extension.js",
"contributes": {
"completionProvider": {
"triggerCharacters": ["m"]
},
"languages": [
{
"id": "mermaid",
Expand Down Expand Up @@ -429,11 +432,23 @@
"when": "view == mermaidChart"
}
],
"view/item/context": [
{
"command": "mermaidChart.downloadDiagram",
"when": "viewItem == document",
"group": "inline"
}
],
"editor/context": [
{
"command": "mermaidChart.preview",
"when": "resourceExtname =~ /^\\.(mmd|mermaid)$/ || resourceLangId =~ /^mermaid/",
"group": "navigation"
},
{
"command": "mermaidChart.connectDiagramToMermaidChart",
"when": "resourceExtname =~ /^\\.(mmd|mermaid)$/ || resourceLangId =~ /^mermaid/",
"group": "navigation"
}
]
},
Expand All @@ -448,9 +463,18 @@
"command": "mermaidChart.syncDiagramWithMermaid",
"when": "editorLangId =~ /^mermaid/",
"mac": "cmd+s"
},
{
"command": "mermaidChart.showCompletions",
"key": "ctrl+shift+k",
"when": "editorLangId =~ /^mermaid/"
}
],
"commands": [
{
"command": "mermaidChart.downloadDiagram",
"title": "Download"
},
{
"command": "mermaidChart.syncDiagramWithMermaid",
"title": "MermaidChart: Sync Diagram"
Expand Down Expand Up @@ -483,6 +507,14 @@
{
"command": "mermaidChart.refresh",
"title": "Refresh"
},
{
"command": "mermaidChart.connectDiagramToMermaidChart",
"title": "MermaidChart: Connect Diagram"
},
{
"command": "mermaidChart.showCompletions",
"title": "Trigger Mermaid Completions"
}
]
},
Expand Down Expand Up @@ -514,8 +546,9 @@
"typescript": "^4.9.5"
},
"dependencies": {
"axios": "^1.4.0",
"uuid": "^9.0.0",
"@mermaidchart/sdk": "^0.2.0",
"yaml": "^2.7.0"
}
},
"packageManager": "[email protected]+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
}
24 changes: 21 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading