We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96cda0b commit e19b983Copy full SHA for e19b983
src/vs/editor/common/controller/cursorTypeOperations.ts
@@ -598,7 +598,7 @@ export class TypeOperations {
598
}
599
600
// Do not auto-close ' or " after a word character
601
- if (autoClosingPair.open.length === 1 && chIsQuote && autoCloseConfig !== 'always') {
+ if (autoClosingPair.open.length === 1 && (ch === '\'' || ch === '"') && autoCloseConfig !== 'always') {
602
const wordSeparators = getMapForWordSeparators(config.wordSeparators);
603
if (insertOpenCharacter && position.column > 1 && wordSeparators.get(lineText.charCodeAt(position.column - 2)) === WordCharacterClass.Regular) {
604
return null;
0 commit comments