Skip to content

Commit e19b983

Browse files
committed
Remove backticks from word character fix
1 parent 96cda0b commit e19b983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/common/controller/cursorTypeOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ export class TypeOperations {
598598
}
599599

600600
// Do not auto-close ' or " after a word character
601-
if (autoClosingPair.open.length === 1 && chIsQuote && autoCloseConfig !== 'always') {
601+
if (autoClosingPair.open.length === 1 && (ch === '\'' || ch === '"') && autoCloseConfig !== 'always') {
602602
const wordSeparators = getMapForWordSeparators(config.wordSeparators);
603603
if (insertOpenCharacter && position.column > 1 && wordSeparators.get(lineText.charCodeAt(position.column - 2)) === WordCharacterClass.Regular) {
604604
return null;

0 commit comments

Comments
 (0)