Skip to content

Commit ce6aa98

Browse files
yamachigalexdima
andauthored
Fix auto-surround closes with an open character (microsoft#147187)
Co-authored-by: Alexandru Dima <[email protected]>
1 parent 1cae2c0 commit ce6aa98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ export class TypeOperations {
891891

892892
const commands: ICommand[] = [];
893893
for (let i = 0, len = positions.length; i < len; i++) {
894-
commands.push(new CompositionSurroundSelectionCommand(positions[i], compositions[i].deletedText, ch));
894+
commands.push(new CompositionSurroundSelectionCommand(positions[i], compositions[i].deletedText, config.surroundingPairs[ch]));
895895
}
896896
return new EditOperationResult(EditOperationType.TypingOther, commands, {
897897
shouldPushStackElementBefore: true,

0 commit comments

Comments
 (0)