mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 290 forks source link

Causing unnecessary highlighting of text even when nothing is selected #1274

Open ShreyanshJoshi opened 5 months ago

ShreyanshJoshi commented 5 months ago

Type: Bug

All the text in a SQL file seems to be highlighted in blue (as if it's selected) even when nothing is being selected in VS Code. This is pretty annoying and it goes away only when a particular part is actually selected by me. Adding screenshot below (nothing is selected here, but still the text seems highlighted) -

image

Extension version: 0.28.1 VS Code version: Code 1.85.1 (Universal) (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:48:06.308Z) OS version: Darwin arm64 23.2.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M2 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|4, 3, 4| |Memory (System)|8.00GB (0.14GB free)| |Process Argv|--crash-reporter-id 985770d6-49e3-4855-940b-9c7ed536a0e5| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 vshan820:30294714 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 py29gd2263:30899288 vsclangdf:30486550 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 0bi6i642:30933247 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2cf:30928864 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 dsvsc019acf:30933242 cp7184t3:30927821 ```
fuzl-llc commented 5 months ago

I think that is by design. There is a command to run the selected query so this can actually be useful if you have more than one query and move the mouse cursor around in the file, it auto-selects the query that will be run by that command. I was annoyed by it too and found a "SQLTools Highlight Query" setting to turn it off.

ShreyanshJoshi commented 5 months ago

Where can I find this "SQLTools Highlight Query" setting? Is this part of the extension?

gjsjohnmurray commented 5 months ago

Do you know about how to use the VS Code Settings Editor?

image