microsoft / vscode

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

cant select text with duble click #126205

Open straxico opened 3 years ago

straxico commented 3 years ago

Issue Type: Bug

hi ... after update i cant select persian text with duble click its work when open vscode .. but after some min cant select persian text with duble click

VS Code version: Code 1.57.0 (b4c1bd0a9b03c749ea011b06c6d2676c8091a70c, 2021-06-09T17:18:42.354Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 x 2808)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.86GB (7.36GB free)| |Process Argv|C:\\Users\\Lion\\Desktop\\frontend --crash-reporter-id 7db2e475-2255-4da5-b5ab-61e60817faf6| |Screen Reader|no| |VM|0%|
Extensions (45) Extension|Author (truncated)|Version ---|---|--- vscode-openapi|42C|4.5.2 vscode-nginx-conf|ahm|0.1.3 swagger-viewer|Arj|3.0.1 vscode-eslint|dba|2.1.22 sort-js-object|deb|0.1.2 vscode-deepscan|Dee|1.48.0 vscode-escape-entities|dja|0.1.0 es7-react-js-snippets|dsz|3.1.1 gitlens|eam|11.5.0 prettier-vscode|esb|6.4.0 vscode-jest-runner|fir|0.4.44 gitlab-workflow|Git|3.22.1 bitcoinwatcher|gra|2.0.0 todo-tree|Gru|0.0.213 vscode-nginx-conf-hint|han|0.1.0 dupchecker|jia|0.1.7 vscode-styled-components|jpo|1.6.4 auto-comment-blocks|kev|1.0.1 css-converter|Lak|0.1.6 dotenv|mik|1.0.1 vscode-docker|ms-|1.13.0 python|ms-|2021.5.926500501 vscode-pylance|ms-|2021.6.1 jupyter|ms-|2021.6.999230701 remote-containers|ms-|0.183.0 remote-ssh|ms-|0.65.7 remote-ssh-edit|ms-|0.65.7 remote-wsl|ms-|0.56.5 debugger-for-chrome|msj|4.12.12 resourcemonitor|mut|1.0.7 color-highlight|nau|2.3.0 vscode-jest|Ort|4.0.3 htmlescape-vscode-extension|ray|0.0.7 nginx-formatter|ray|0.0.13 vscode-yaml|red|0.19.2 vscode-git-commit|rio|2.1.0 LiveServer|rit|5.6.1 vscode-javascript-booster|sbu|14.0.1 swdc-vscode|sof|2.5.15 addDocComments|ste|0.0.8 code-spell-checker|str|1.10.2 code-spell-checker-persian|str|0.1.7 vscode-stylelint|sty|0.86.0 vscode-counter|uct|2.3.0 quokka-vscode|Wal|1.0.375
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551cf:30311713 vspre833cf:30267465 pythonptprofiler:30281270 vshan820:30294714 pythondataviewer:30285071 vscus158:30286553 pythonvsuse255:30319631 vscgsv2:30307504 vscorehovct:30309550 vscod805cf:30301675 binariesv517cf:30312826 ```
alexdima commented 3 years ago

@straxico Does this reproduce when disabling all extensions? Press F1 and then choose Developer: Reload Window with Extensions Disabled. Does it reproduce in any file type, like in plain .txt files? Did you customize editor.wordSeparators in your settings.json?

Kapture 2020-07-20 at 15 28 23

straxico commented 3 years ago

hi @alexdima It works without issue when disable extensions i don't edit editor.wordSeparators

this video for when extensions enable i double click on strings when click on اعمال or پاک کردن text not select index tsx - frontend - Visual Studio Code 2021-06-15 11-00-24

alexdima commented 3 years ago

Thank you! Given that it looks like the issue is caused by one of your installed extensions, in order to narrow down the possible problematic extension, please try the following:

initial step final
image image image
straxico commented 3 years ago

hi i found an error on gitlens tanks to you and Microsoft team a111

alexdima commented 3 years ago

:+1: Thank you. Please open an issue directly against https://github.com/eamodio/vscode-gitlens

eamodio commented 3 years ago

@alexdima this isn't really a GitLens issue -- this seems to be an issue with editor decorations.

alexdima commented 3 years ago

Steps to reproduce:

exports.activate = function() { const dec = vscode.window.createTextEditorDecorationType({}); vscode.window.activeTextEditor.setDecorations(dec, [{ range: new vscode.Range(0, 18, 0, 18), renderOptions: { after: { contentText: 'x' } } }]); };

* `file.txt`:
    صفحه‌آرایی


https://user-images.githubusercontent.com/5047891/123793237-c63c1680-d8e1-11eb-9376-ce21454a77a8.mp4