napi-rs / napi-rs

A framework for building compiled Node.js add-ons in Rust via Node-API
https://napi.rs
Other
5.73k stars 246 forks source link

LSP autocomplete useless with napi macros #944

Open mischnic opened 2 years ago

mischnic commented 2 years ago

I can see how/why this happened, but from a user's perspective autocomplete being broken inside of constructs using the napi macro is very frustrating.

Bildschirmfoto 2021-12-18 um 12 25 39

Bildschirmfoto 2021-12-18 um 12 25 51

sam3d commented 2 years ago

I've been able to fix this this (in rust-analyzer) by disabling proc attr macro support:

image

numToStr commented 2 years ago

With rust-analyzer 2022-01-10, you can also do the following to ignore the napi macro.

oyyd commented 1 year ago

Sorry for my mis-operation that unpin this issue..

BB-fat commented 7 months ago

@numToStr Do you know how to solve this problem in RustRover?