microsoft / vscode

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

VS Code suggestions doesn't work #230082

Open TheCiosiek opened 3 hours ago

TheCiosiek commented 3 hours ago

Type: Bug

Steps to reproduce:

  1. Open in VS Code any Java project ( I tested with Spring boot and just Maven)

Bugs:

  1. VS Code don't recognize/ suggests any of the basic java imports like ArrayList or Base64
  2. When there is no method in the class VS Code can't create this method via suggestion "create this method"
  3. When there is error that is not handled, it erases some lines codes or parts of it instead of fixing it by using suggestion "throw this erorr" or "add exception to existing catch clause"

VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.69GB (16.59GB free)| |Process Argv|--crash-reporter-id aade982c-c8d8-4e78-a32a-941f6d2fe789| |Screen Reader|no| |VM|0%|
Extensions (59) Extension|Author (truncated)|Version ---|---|--- project-manager|ale|12.8.0 vscode-sqlite|ale|0.14.1 gitignore|cod|0.9.0 doxdocgen|csc|1.4.0 git-extension-pack|don|0.1.3 githistory|don|0.6.20 gitlens|eam|15.5.1 vsc-material-theme|Equ|34.7.5 vsc-material-theme-icons|equ|3.8.8 copilot|Git|1.234.0 copilot-chat|Git|0.20.3 vscode-pull-request-github|Git|0.96.0 todo-tree|Gru|0.0.226 better-cpp-syntax|jef|1.27.1 vscode-language-pack-pl|MS-|1.93.2024091109 vscode-dotnet-runtime|ms-|2.1.6 debugpy|ms-|2024.10.0 isort|ms-|2023.10.1 python|ms-|2024.14.1 vscode-pylance|ms-|2024.9.2 jupyter|ms-|2024.8.1 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.19 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.384.0 remote-ssh|ms-|0.114.3 remote-ssh-edit|ms-|0.86.0 cpptools|ms-|1.21.6 cpptools-extension-pack|ms-|1.3.0 remote-explorer|ms-|0.4.3 vscode-serial-monitor|ms-|0.13.1 vsliveshare|ms-|1.0.5941 platformio-ide|pla|3.3.3 polacode|pnp|0.3.4 r-debugger|RDe|0.5.5 fabric8-analytics|red|0.9.5 java|red|1.35.0 vscode-xml|red|0.27.1 LiveServer|rit|5.7.9 java-generate-setters-getters|soh|8.0.1 code-spell-checker|str|3.0.1 color-basic|Tan|0.1.4 ayu|tea|1.0.5 togglebracketguides|TGO|0.1.6 errorlens|use|3.20.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-spring-boot|vmw|1.57.0 vscode-gradle|vsc|3.16.4 vscode-java-debug|vsc|0.58.0 vscode-java-dependency|vsc|0.24.0 vscode-java-pack|vsc|0.29.0 vscode-java-test|vsc|0.42.0 vscode-maven|vsc|0.44.0 vscode-spring-initializr|vsc|0.11.2 plsql-language|xyz|1.8.2 plsql-debug|zer|1.0.8 vscode-open-in-github|ziy|1.3.6 (4 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 cf971741:31144450 autoexpandse:31146404 iacca2:31144504 5fd0e150:31146321 ```
TheCiosiek commented 3 hours ago

I'm attaching video of VS Code behaving like shit, i'm unable to work in this

https://github.com/user-attachments/assets/314503e8-4f86-49ee-a110-3a365cfcfa67

TheCiosiek commented 2 hours ago

In this example suggestion try/catch is working correctly. If there would be already a try catch block then it would not work anymore. When i imported java.security.NoSuchAlgorithmException, then VS Code won't do anything after i click suggestion "add throwable"