diff --git a/.changeset/gold-meals-bathe.md b/.changeset/gold-meals-bathe.md new file mode 100644 index 00000000..94b97586 --- /dev/null +++ b/.changeset/gold-meals-bathe.md @@ -0,0 +1,7 @@ +--- +'@mdx-js/language-service': patch +'@mdx-js/language-server': patch +'vscode-mdx': patch +--- + +Use two tildes to toggle delete syntax diff --git a/packages/language-server/test/syntax-toggle.test.js b/packages/language-server/test/syntax-toggle.test.js index f048c70f..5c63e38c 100644 --- a/packages/language-server/test/syntax-toggle.test.js +++ b/packages/language-server/test/syntax-toggle.test.js @@ -41,14 +41,14 @@ test('delete', async () => { changes: { 'memory://1': [ { - newText: '~', + newText: '~~', range: { end: {character: 0, line: 0}, start: {character: 0, line: 0} } }, { - newText: '~', + newText: '~~', range: { end: {character: 5, line: 0}, start: {character: 5, line: 0} diff --git a/packages/language-service/lib/service-plugin.js b/packages/language-service/lib/service-plugin.js index da0171b3..3216da6b 100644 --- a/packages/language-service/lib/service-plugin.js +++ b/packages/language-service/lib/service-plugin.js @@ -83,7 +83,7 @@ export function createMdxServicePlugin(options) { context, options, 'delete', - '~', + '~~', args[0], args[1] )