Skip to content

Commit 29474d5

Browse files
committed
Revert "Fix microsoft#85151"
This reverts commit 3986960.
1 parent 06f97fe commit 29474d5

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

extensions/html-language-features/client/src/mirrorCursor.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -161,36 +161,6 @@ function isCharBeforeAndAfterPositionsRoughtlyEqual(document: TextDocument, firs
161161
const charBeforeSecondarySelection = getCharBefore(document, secondPos);
162162
const charAfterSecondarySelection = getCharAfter(document, secondPos);
163163

164-
/**
165-
* Special case for exiting
166-
* |<div>
167-
* |</div>
168-
*/
169-
if (
170-
charBeforePrimarySelection === ' ' &&
171-
charBeforeSecondarySelection === ' ' &&
172-
charAfterPrimarySelection === '<' &&
173-
charAfterSecondarySelection === '<'
174-
) {
175-
return false;
176-
}
177-
/**
178-
* Special case for exiting
179-
* | <div>
180-
* | </div>
181-
*/
182-
if (charBeforePrimarySelection === '\n' && charBeforeSecondarySelection === '\n') {
183-
return false;
184-
}
185-
/**
186-
* Special case for exiting
187-
* <div>|
188-
* </div>|
189-
*/
190-
if (charAfterPrimarySelection === '\n' && charAfterSecondarySelection === '\n') {
191-
return false;
192-
}
193-
194164
// Exit mirror mode when cursor position no longer mirror
195165
// Unless it's in the case of `<|></|>`
196166
const charBeforeBothPositionRoughlyEqual =

0 commit comments

Comments
 (0)