-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-edit-contextverification-foundIssue verification failedIssue verification failedverifiedVerification succeededVerification succeeded
Milestone
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-edit-contextverification-foundIssue verification failedIssue verification failedverifiedVerification succeededVerification succeeded