microsoft / vscode

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

search not looking under @ts-ignore and ts-nocheck #153776

Closed rattkin closed 1 year ago

rattkin commented 2 years ago

We have written the needed data into your clipboard because it was too large to send. Please paste. Issue Type: Bug

Search doesn't find anything in files that have @ts-ignore or ts-nocheck

VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-15T02:58:26.441Z) OS version: Linux x64 5.17.5-051705-generic snap Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 5600X 6-Core Processor (12 x 2800)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|2, 3, 3| |Memory (System)|62.79GB (47.03GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id 7a0e4206-ec93-404c-b78a-aac6eb1d48e1| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (30) Extension|Author (truncated)|Version ---|---|--- yaml2json|ahe|0.0.4 copy-relative-file-path-with-line|aki|0.1.0 tsl-problem-matcher|amo|0.6.2 vscode-apollo|apo|1.19.11 atlascode|atl|2.10.12 turbo-console-log|Cha|2.3.2 vscode-eslint|dba|2.2.2 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|12.1.1 prettier-vscode|esb|9.5.0 todo-tree|Gru|0.0.215 rest-client|hum|0.25.0 vscode-styled-components|jpo|1.7.0 inline-parameters|lia|0.2.1 sftp|lix|1.12.10 ts-error-translator|mat|0.5.1 ecdc|mit|1.8.0 vscode-docker|ms-|1.22.0 subtitles-editor|pep|1.1.7 vscode-yaml|red|1.8.0 vscode-cy-helper|She|1.2.2 mdx|sil|0.1.0 git-prefix|srm|1.3.0 code-spell-checker|str|2.2.5 code-spell-checker-czech|str|0.1.12 clockify-tracker|tob|3.0.12 sort-lines|Tyr|1.9.1 vscodeintellicode|Vis|1.2.21 change-case|wma|1.0.0 vscode-mdx-preview|xyc|0.3.3
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 vsclangdc:30486549 ```
roblourens commented 2 years ago

See if anything in here helps https://github.com/microsoft/vscode/wiki/Search-Issues

rattkin commented 2 years ago

thanks @roblourens. no the files are not covered by .gitignore

roblourens commented 2 years ago

Or exclude patterns? I can promise that search is language-independent and does not look at ts flags. I need a more specific example if you want me to investigate.

rattkin commented 2 years ago

It happened to me multiple times in the past year. Even pushed non working code, when I deleted "unused" functions, because the search didn't find it.

I can't replicate it at the moment.

I guess next time it happens, I post a screenshot.

VSCodeTriageBot commented 1 year ago

Hey @roblourens, this issue might need further attention.

@rattkin, you can help us out by closing this issue if the problem no longer exists, or adding more information.

rattkin commented 1 year ago

I was not able to replicate the problem.