vscode-mermaid-editor
vscode-mermaid-editor copied to clipboard
No support for auto-closing quote marks or toggling comments
I have fixed this "issue" myself locally and wanted to share since there is no guide of how to contribute to the project.
- package.json > "contributes" > "languages" add a line on the same level as "id", "extensions", and "aliases" (remember about a comma in the line above).
"configuration": "./language-configuration.json"
- In the root directory create language-configuration.json:
{
"comments": {
"lineComment": "%%"
},
"autoCloseBefore": ";:.,=}])> \n\t",
"autoClosingPairs": [
{
"open": "\"",
"close": "\"",
"notIn": ["string", "comment"]
},
],
"surroundingPairs": [
[
"\"",
"\""
]
]
}