microsoft / vscode

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

PHP Language Basics snippets does not work after update for 1.75 #173367

Closed palansher closed 1 year ago

palansher commented 1 year ago

Type: Bug

Hello!

Thank you for great tool!

After updating for v 1.75 I found:

Inside class any snippets still work: image

but inside a class method - does not work now:

image

thank you! Vladimir

PS: PHP Language Features extention is disabled.

VS Code version: Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:23:45.584Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Remote OS version: Linux x64 5.4.0-135-generic

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 x 3696)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|63.92GB (42.76GB free)| |Process Argv|--crash-reporter-id 17c97a85-4793-43e1-a690-6672154b65c3| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: dev_vladp| |OS|Linux x64 5.4.0-135-generic| |CPUs|Common KVM processor (3 x 3593)| |Memory (System)|15.63GB (8.56GB free)| |VM|8%|
Extensions (86) Extension|Author (truncated)|Version ---|---|--- php-skeleton-generator|Adr|0.2.4 vscode-nginx-conf|ahm|0.1.3 Bookmarks|ale|13.3.1 bootstrap5-vscode|Anb|0.4.2 html-end-tag-labels|ant|0.10.0 vstwig|art|0.0.8 All-Autocomplete|Ati|0.0.23 vs-phpcompanion|bla|2.2.0 vscode-intelephense-client|bme|1.9.4 findallinfile|bna|1.2.0 npm-intellisense|chr|1.4.4 path-intellisense|chr|2.8.4 bracket-select|chu|2.0.2 vscode-sql-beautify|cla|0.3.16 psalm-vscode-plugin|cle|2.2.2 ini-for-vscode|Dav|0.0.4 vscode-quick-select|dba|0.2.9 githistory|don|0.6.19 gitlens|eam|13.2.0 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|9.10.4 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 shell-format|fox|7.2.2 php-awesome-snippets|hak|1.1.3 vscode-nginx-conf-hint|han|0.3.0 vscode-test-explorer|hbe|2.21.1 crontab-syntax-highlight|hog|0.0.2 rest-client|hum|0.25.1 php-cs-fixer|jun|0.3.8 twig-language|jun|0.10.10 latte|Kas|0.18.0 bash-ide-vscode|mad|1.33.0 twig-language|mbl|0.9.2 twig-language-2|mbl|0.9.2 rainbow-csv|mec|3.5.0 php-namespace-resolver|Meh|1.1.9 git-graph|mhu|1.30.0 djlint|mon|2022.10.1 easy-less|mrc|1.7.4 vscode-docker|ms-|1.23.3 isort|ms-|2022.8.0 python|ms-|2023.2.0 vscode-pylance|ms-|2023.2.10 jupyter|ms-|2023.1.2000312134 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.14 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.275.0 remote-ssh|ms-|0.96.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.75.1 vscode-remote-extensionpack|ms-|0.23.0 remote-explorer|ms-|0.2.0 test-adapter-converter|ms-|0.1.6 sqltools|mtx|0.27.1 php-docblocker|nei|2.7.0 vscode-groovy-lint|Nic|2.0.0 bootstrap5snippets|Nis|1.8.0 indent-rainbow|ode|8.3.1 vscode-versionlens|pfl|1.1.1 vscode-thunder-client|ran|2.3.4 nginx-formatter|ray|0.0.13 ansible|red|1.1.34 vscode-yaml|red|1.11.0 shellman|Rem|5.6.0 twig-language-support|rho|1.0.1 LiveServer|rit|5.7.9 jinjahtml|sam|0.20.0 vscode-php8-getter-setter|sat|1.1.4 vscode-stable-sort|sgr|1.2.2 bash-beautify|sha|0.1.1 vscode-fileutils|sle|3.10.0 vscode-multiclip|sle|0.1.5 control-snippets|svi|1.9.1 custom-xml-formatter|tho|1.3.2 search|use|0.0.1 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-icons|vsc|12.2.0 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 php-debug|xde|1.31.0 markdown-all-in-one|yzh|3.5.0 (5 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vscaac:30438847 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 pyindex848cf:30577861 nodejswelcome1:30587005 282f8724:30602487 89544117:30613380 pythonsymbol12:30657548 ```
FelDev commented 1 year ago

I'm having trouble with my global snippets too.

If I use a prefix that won't trigger other suggestions, such as "lkj" it works

"Print to console": {
    "prefix": "lkj",
    "body": [
        "console.log(`@$1`)",
        "$2"
    ],
    "description": "Log to console"
}

but if I use a prefix that triggers other suggestions, such as "log", vsCode never suggests my snippet

"Print to console": {
    "prefix": "log",
    "body": [
        "console.log(`@$1`)",
        "$2"
    ],
    "description": "Log to console"
}
palansher commented 1 year ago

Please tell me how to downgrade to prevision stable version for W10+ssh remote Ubuntu 20.04. If I downgrade to v1.74.3 on Windows10, Vscode reinstalls after Vscode restart, even if auto-update is disabled in settings.

It seems I also need to downgrade / reinstall remote ssh Vscode component on Ubuntu. Would you please advise how to do it? Preferably keeping extensions and settings.

troehrkasse commented 1 year ago

I'm having snippet problems too after upgrading to 1.75.0! It affects my custom snippets but also other suggestions are buggy.

Version: 1.75.0
Commit: e2816fe719a4026ffa1ee0189dc89bdfdbafb164
Date: 2023-02-01T15:26:31.005Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin arm64 22.3.0
Sandboxed: Yes

I have a custom snippet triggered by tfn. When I type the first letter t I see it:

image

But then after typing the second letter f it disappears:

image

And if I keep typing all three letters tfn then the suggestion box disappears and nothing works:

image

From this stage, if I delete the n and then type it again, the suggestion box will re-appear and correctly show my snippet:

image

I've been able to create this buggy behavior without involving my custom snippets as well. For example:

I type in ta and get these suggestions:

image

Next, I type another letter from one of the suggested completions, doesn't matter which so I'll do b:

image

Now, I press backspace to delete the b and a third option is shown in the list that wasn't available in the first case:

image
trananhmanh89 commented 1 year ago

got same issue with basic snippets and custom snippets... please fix 🥲

zysable commented 1 year ago

got the same problem with javascrpitreact, typescriptreact

julesgilson commented 1 year ago

confirm same - only worked on PHP this morning so can only comment on that, but no default PHP snippets suggested

harpreetsb commented 1 year ago

same problem here.

Pavlo-Honcharenko commented 1 year ago

same problem with scss, javascript, html

harpreetsb commented 1 year ago

Downgraded to code-1.74.3 for now.

stramunin commented 1 year ago

I don't reproduce this problem. The same version, but without SSH.

Possible duplicate of #173244 #173408

gjsjohnmurray commented 1 year ago

/duplicate of #173244

vscodenpa commented 1 year ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!