Skip to content

Commit 5382a52

Browse files
committed
Add a test for microsoft#61070
1 parent 65a6230 commit 5382a52

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/vs/editor/test/browser/controller/cursor.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4878,6 +4878,18 @@ suite('autoClosingPairs', () => {
48784878
model.undo();
48794879
}
48804880

4881+
test('issue #61070: backtick (`) should auto-close after a word character', () => {
4882+
let mode = new AutoClosingMode();
4883+
usingCursor({
4884+
text: ['const markup = highlight'],
4885+
languageId: mode.languageId
4886+
}, (editor, model, viewModel) => {
4887+
model.forceTokenization(1);
4888+
assertType(editor, model, viewModel, 1, 25, '`', '``', `auto closes \` @ (1, 25)`);
4889+
});
4890+
mode.dispose();
4891+
});
4892+
48814893
test('open parens: default', () => {
48824894
let mode = new AutoClosingMode();
48834895
usingCursor({

0 commit comments

Comments
 (0)