microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.75k stars 29.1k forks source link

Pasted content is marked if replacing another text token #185329

Closed HerrDerb closed 1 year ago

HerrDerb commented 1 year ago

Type: Bug

When copying a text token (e.g. variable name) and try to replace another, by marking it and then paste, the pasted text gets partitially marked. Due to this, it happens often that one does override the just pasted text.

A pasted text should not be marked

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.22621 Modes:

Extensions (73) Extension|Author (truncated)|Version ---|---|--- camelgobrr|aet|0.1.4 ng-template|Ang|16.0.0 asciidoctor-vscode|asc|2.9.8 angular-schematics|cyr|5.4.2 vscode-markdownlint|Dav|0.51.0 vscode-eslint|dba|2.4.0 xml|Dot|2.5.1 gitlens|eam|14.0.0 vscode-jest-runner|fir|0.4.60 chatgpt-vscode|gen|0.0.8 html-preview-vscode|geo|0.2.5 codespaces|Git|1.14.8 remotehub|Git|0.58.0 vscode-github-actions|git|0.25.7 vscode-pull-request-github|Git|0.66.1 git-worktrees|Git|2.0.5 shifter|Gru|0.0.6 vscode-test-explorer|hbe|2.21.1 plantuml|jeb|2.17.5 Angular2|joh|16.0.1 azure-dev|ms-|0.6.0 vscode-azureappservice|ms-|0.24.9 vscode-azurecontainerapps|ms-|0.5.1 vscode-azurefunctions|ms-|1.11.0 vscode-azureresourcegroups|ms-|0.7.5 vscode-azurestaticwebapps|ms-|0.12.1 vscode-azurestorage|ms-|0.15.3 vscode-azurevirtualmachines|ms-|0.6.5 vscode-cosmosdb|ms-|0.19.4 vscode-docker|ms-|1.25.1 vscode-kubernetes-tools|ms-|1.3.13 isort|ms-|2022.8.0 python|ms-|2023.10.1 vscode-pylance|ms-|2023.6.20 remote-containers|ms-|0.295.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.79.5 azure-account|ms-|0.11.5 azure-repos|ms-|0.34.0 remote-explorer|ms-|0.4.0 remote-repositories|ms-|0.36.0 remote-server|ms-|1.2.1 test-adapter-converter|ms-|0.1.8 vscode-node-azure-pack|ms-|1.2.0 sqltools|mtx|0.27.1 sqltools-driver-pg|mtx|0.5.1 gradle-language|nac|0.2.3 proto|pet|0.0.4 material-icon-theme|PKi|4.28.0 fabric8-analytics|red|0.3.10 java|red|1.19.0 vscode-microprofile|red|0.9.2023061604 vscode-quarkus|red|1.14.0 vscode-yaml|red|1.13.0 vscode-spotless-gradle|ric|1.2.1 java-generate-setters-getters|soh|8.0.0 sonarlint-vscode|Son|3.18.0 sass-indented|syl|1.8.26 vscode-helm|tec|0.4.0 helm-intellisense|Tim|0.14.3 vscode-decompiler|tin|0.1.0 pdf|tom|1.2.2 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-gradle|vsc|3.12.2023052700 vscode-java-debug|vsc|0.51.0 vscode-java-dependency|vsc|0.23.0 vscode-java-pack|vsc|0.25.11 vscode-java-test|vsc|0.39.0 vscode-maven|vsc|0.41.0 vscode-java-tests|wes|1.5.0 vscode-proto3|zxh|0.5.5
HerrDerb commented 1 year ago

It's mostly related to the java plugin