Skip to content

Commit

Permalink
Remove backticks from autoClosingPairs and surroundingPairs
Browse files Browse the repository at this point in the history
Doubling up backticks happens when trying to write a code block in MDX.

This breaks backtick auto-pairing even when writing inline code span, but arguably, it is much less annoying to have to add the matching backtick manually in the case of an inline code span than it is to have to remove it twice every time a code block is being written (in the opening and closing triple-backtick lines).
  • Loading branch information
TomasHubelbauer authored Feb 21, 2023
1 parent 373af38 commit c406d37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/remove-backtick-autocompletion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vscode-mdx': patch
---

Remove backtick auto-completion to prevent doubling up backticks in inline code spans and code blocks
2 changes: 0 additions & 2 deletions packages/vscode-mdx/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
["{", "}"],
["[", "]"],
["(", ")"],
["`", "`"],
{
"open": "\"",
"close": "\"",
Expand Down Expand Up @@ -45,7 +44,6 @@
["\"", "\""],
["'", "'"],
["<", ">"],
["`", "`"],
["_", "_"],
["*", "*"]
],
Expand Down

0 comments on commit c406d37

Please sign in to comment.