-
Couldn't load subscription status.
- Fork 35.8k
Open
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: Version: 1.105.1
- OS Version: MacOS 15.7.1
Steps to Reproduce:
- Open the web version of VS Code (https://vscode.dev/)
- Open settings and find
editor.editContextoption - Disable
editor.editContextoption. Alternatively use browser withoutEditContextsupport, ex Safari or Firefox. - Open new text file
- Type in any text
- Select any piece of text going backwards. Works both with keyboard selection (Shift + ArrowLeft) and mouse selection
- Start typing
Expected result:
- Selected text is replaced with new typed text
Actual result:
- Nothing happens.
- When press another button, the second symbol will be typed correctly
Likely is introduced in this commit in #259042 while fixing #256833. In this code snippet selectionStart will be greater or equal then selectionEnd since length is always non negative. Seems that other parts of the code expect selectionStart to always be before selectionEnd. See this file for example.
Metadata
Metadata
Assignees
Labels
No labels