microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
192 stars 6 forks source link

Intellisense doesn't work on Unity method like Update(), OnTriggerEnter(). #1056

Closed iouzzrj closed 1 month ago

iouzzrj commented 1 month ago

Type: Bug

IntelliSense's auto complete feature does work most of the time, but it doesn't work on some Unity method like Update(), OnTriggerEnter().

This is a snapshot from Visual Studio in which IntelliSense works for the OnTriggerEnter method: 屏幕截图 2024-04-10 202600

On Visual Studio Code however, the auto complete doesn't work: 屏幕截图 2024-04-10 203148

Extension version: 1.0.1 VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 5950X 16-Core Processor (32 x 3394)| |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)|undefined| |Memory (System)|127.92GB (113.72GB free)| |Process Argv|C:\\Users\\iouzz\\Documents\\Unity Projects\\My project (2) -g C:\\Users\\iouzz\\Documents\\Unity Projects\\My project (2)\\Assets\\Scripts\\OutOfBounds.cs:1:0| |Screen Reader|no| |VM|0%|
iouzzrj commented 1 month ago

I just learned the C# chapter on classes and haven't learned about inheritance yet. But seems these methods are inherited from MonoBehaviour. So the auto complete doesn't work on inherited method?

iouzzrj commented 1 month ago

Sorry, I clicked the wrong button. Reopen this issue now.

sailro commented 1 month ago

Duplicate of https://github.com/microsoft/vscode-dotnettools/issues/1020