未验证 提交 5382a52a 编写于 作者: A Alex Dima

Add a test for #61070

上级 65a6230a
......@@ -4878,6 +4878,18 @@ suite('autoClosingPairs', () => {
model.undo();
}
test('issue #61070: backtick (`) should auto-close after a word character', () => {
let mode = new AutoClosingMode();
usingCursor({
text: ['const markup = highlight'],
languageId: mode.languageId
}, (editor, model, viewModel) => {
model.forceTokenization(1);
assertType(editor, model, viewModel, 1, 25, '`', '``', `auto closes \` @ (1, 25)`);
});
mode.dispose();
});
test('open parens: default', () => {
let mode = new AutoClosingMode();
usingCursor({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册